Skip to content

Commit a056cbc

Browse files
authored
Fix data race in 'discard connections' pool test. (#1860)
1 parent 2cbff02 commit a056cbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ tasks:
8787
test-race:
8888
- go test ${BUILD_TAGS} -timeout {{.TEST_TIMEOUT}}s -race -p 1 ./...
8989

90-
test-short: go test ${BUILD_TAGS} -timeout 60s -short ./...
90+
test-short: go test ${BUILD_TAGS} -timeout 60s -short -race ./...
9191

9292
test-oidc: bash etc/run-oidc-test.sh 'task --silent evg-test-oidc-auth'
9393

x/mongo/driver/topology/pool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ func TestPool(t *testing.T) {
890890
go func() {
891891
select {
892892
case nc := <-ncs:
893-
_, err = nc.Write([]byte{5, 0, 0, 0, 0})
893+
_, err := nc.Write([]byte{5, 0, 0, 0, 0})
894894
require.NoError(t, err, "Write error")
895895
case <-time.After(100 * time.Millisecond):
896896
}

0 commit comments

Comments
 (0)