Fix race in test
Goroutine should have it's own err var instead of sharing.
This commit is contained in:
@@ -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)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user