We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 780fd13 commit 0f01998Copy full SHA for 0f01998
x/mongo/driver/topology/connection_test.go
@@ -151,13 +151,7 @@ func TestConnection(t *testing.T) {
151
close(doneChan)
152
153
assert.Eventually(t,
154
- func() bool {
155
- if done.Load() == nil {
156
- return false
157
- }
158
-
159
- return done.Load().(bool)
160
- },
+ func() bool { return done.Load() != nil && done.Load().(bool) },
161
100*time.Millisecond,
162
1*time.Millisecond,
163
"TODO")
0 commit comments