From 2bb752b088e5e74209fd9b58b7004e9710b7eb81 Mon Sep 17 00:00:00 2001 From: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Date: Tue, 17 Oct 2023 17:24:13 +0300 Subject: [PATCH] no need to check for context.DeadlineExceeded because we exist in case of deadline before looking into the error Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --- .../vrepl_stress/onlineddl_vrepl_mini_stress_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/go/test/endtoend/onlineddl/vrepl_stress/onlineddl_vrepl_mini_stress_test.go b/go/test/endtoend/onlineddl/vrepl_stress/onlineddl_vrepl_mini_stress_test.go index 3d88a01b1ce..983739a976d 100644 --- a/go/test/endtoend/onlineddl/vrepl_stress/onlineddl_vrepl_mini_stress_test.go +++ b/go/test/endtoend/onlineddl/vrepl_stress/onlineddl_vrepl_mini_stress_test.go @@ -18,7 +18,6 @@ package vreplstress import ( "context" - "errors" "flag" "fmt" "math/rand" @@ -518,9 +517,7 @@ func runSingleConnection(ctx context.Context, t *testing.T) { return case <-time.After(singleConnectionSleepInterval): } - if !errors.Is(err, context.DeadlineExceeded) { // this is an acceptable error - assert.Nil(t, err) - } + assert.Nil(t, err) } }