Skip to content

Commit

Permalink
Fix data race in 'discard connections' pool test. [v1] (mongodb#1877)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdale authored Oct 24, 2024
1 parent 6378a22 commit e4c2740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ test-race:

.PHONY: test-short
test-short:
go test $(BUILD_TAGS) -timeout 60s -short ./...
go test $(BUILD_TAGS) -timeout 60s -short -race ./...

### Local FaaS targets. ###
.PHONY: build-faas-awslambda
Expand Down
2 changes: 1 addition & 1 deletion x/mongo/driver/topology/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ func TestPool(t *testing.T) {
go func() {
select {
case nc := <-ncs:
_, err = nc.Write([]byte{5, 0, 0, 0, 0})
_, err := nc.Write([]byte{5, 0, 0, 0, 0})
require.NoError(t, err, "Write error")
case <-time.After(100 * time.Millisecond):
}
Expand Down

0 comments on commit e4c2740

Please sign in to comment.