Skip to content

Commit

Permalink
Merge pull request #1061 from mjl-/fix-flaky-TestConnPrepareContext
Browse files Browse the repository at this point in the history
Fix flaky TestConnPrepareContext
  • Loading branch information
otan committed Nov 7, 2021
2 parents 26399a7 + 2b4fa17 commit a54251e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn_test.go
Expand Up @@ -1828,7 +1828,7 @@ func TestConnPrepareContext(t *testing.T) {
{
name: "context.WithTimeout exceeded",
ctx: func() (context.Context, context.CancelFunc) {
return context.WithTimeout(context.Background(), time.Microsecond)
return context.WithTimeout(context.Background(), -time.Minute)
},
sql: "SELECT 1",
err: context.DeadlineExceeded,
Expand Down

0 comments on commit a54251e

Please sign in to comment.