Fix race in test

Goroutine should have it's own err var instead of sharing.
pull/1281/head
Jack Christensen 2022-06-25 14:07:48 -05:00
parent 125ee9670e
commit b068d53753
1 changed files with 1 additions and 1 deletions

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)
}()