mirror of https://github.com/jackc/pgx.git
Fix race in test
Goroutine should have it's own err var instead of sharing.pull/1281/head
parent
125ee9670e
commit
b068d53753
|
@ -1855,7 +1855,7 @@ func TestConnCancelRequest(t *testing.T) {
|
||||||
// Once Flush is available this could use that instead.
|
// Once Flush is available this could use that instead.
|
||||||
time.Sleep(500 * time.Millisecond)
|
time.Sleep(500 * time.Millisecond)
|
||||||
|
|
||||||
err = pgConn.CancelRequest(context.Background())
|
err := pgConn.CancelRequest(context.Background())
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue