Skip to content

Commit a255bb7

Browse files
committed
tests: fix flaky TestConnect_schema_update
The tests flaks sometime with the error: ``` failed to identify: read error: context deadline exceeded ``` It was decided just to increase a connect timeout.
1 parent 07ea1d1 commit a255bb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tarantool_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -3927,11 +3927,12 @@ func TestConnect_schema_update(t *testing.T) {
39273927
conn := test_helpers.ConnectWithValidation(t, dialer, opts)
39283928
defer conn.Close()
39293929

3930+
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
3931+
defer cancel()
3932+
39303933
for i := 0; i < 100; i++ {
39313934
fut := conn.Do(NewCallRequest("create_spaces"))
39323935

3933-
ctx, cancel := test_helpers.GetConnectContext()
3934-
defer cancel()
39353936
if conn, err := Connect(ctx, dialer, opts); err != nil {
39363937
if err.Error() != "concurrent schema update" {
39373938
t.Errorf("unexpected error: %s", err)

0 commit comments

Comments
 (0)