Skip to content

Commit 0428344

Browse files
Copilotasmyasnikov
andcommitted
Initial plan for fixing context deadline exceeded error message
Co-authored-by: asmyasnikov <[email protected]>
1 parent 20dbe23 commit 0428344

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

driver_test.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package ydb
2+
3+
import (
4+
"context"
5+
"testing"
6+
"time"
7+
8+
"github.com/stretchr/testify/require"
9+
)
10+
11+
func TestOpen(t *testing.T) {
12+
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Nanosecond)
13+
defer cancel()
14+
15+
time.Sleep(10 * time.Nanosecond)
16+
17+
_, err := Open(ctx, "grpc://localhost:2136/local")
18+
require.NoError(t, err)
19+
}

0 commit comments

Comments
 (0)