Skip to content

Commit a54251e

Browse files
authored
Merge pull request #1061 from mjl-/fix-flaky-TestConnPrepareContext
Fix flaky TestConnPrepareContext
2 parents 26399a7 + 2b4fa17 commit a54251e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conn_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ func TestConnPrepareContext(t *testing.T) {
18281828
{
18291829
name: "context.WithTimeout exceeded",
18301830
ctx: func() (context.Context, context.CancelFunc) {
1831-
return context.WithTimeout(context.Background(), time.Microsecond)
1831+
return context.WithTimeout(context.Background(), -time.Minute)
18321832
},
18331833
sql: "SELECT 1",
18341834
err: context.DeadlineExceeded,

0 commit comments

Comments
 (0)