Skip to content

Commit

Permalink
GODRIVER-1875 fix TestPool test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
iwysiu committed Feb 16, 2021
1 parent 1e9794c commit 1b499ee
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -233,13 +233,13 @@ func TestPool(t *testing.T) {
}
}()
go func() {
defer close(disconnectDone)
_, err := p.get(getCtx)
noerr(t, err)
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Microsecond)
defer cancel()
err = p.disconnect(ctx)
noerr(t, err)
close(disconnectDone)
}()
<-getDone
close(cleanup)
Expand Down

0 comments on commit 1b499ee

Please sign in to comment.