2
0

Fix race in test

Goroutine should have it's own err var instead of sharing.
This commit is contained in:
Jack Christensen
2022-06-25 14:07:48 -05:00
parent 125ee9670e
commit b068d53753
+1 -1
View File
@@ -1855,7 +1855,7 @@ func TestConnCancelRequest(t *testing.T) {
// Once Flush is available this could use that instead.
time.Sleep(500 * time.Millisecond)
err = pgConn.CancelRequest(context.Background())
err := pgConn.CancelRequest(context.Background())
require.NoError(t, err)
}()