Skip to content

Commit

Permalink
no need to check for context.DeadlineExceeded because we exist in cas…
Browse files Browse the repository at this point in the history
…e of deadline before looking into the error

Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Oct 17, 2023
1 parent abae17b commit 2bb752b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package vreplstress

import (
"context"
"errors"
"flag"
"fmt"
"math/rand"
Expand Down Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 2bb752b

Please sign in to comment.