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 4bbb04f commit 780fd13Copy full SHA for 780fd13
x/mongo/driver/topology/connection_test.go
@@ -151,7 +151,13 @@ func TestConnection(t *testing.T) {
151
close(doneChan)
152
153
assert.Eventually(t,
154
- func() bool { return done.Load().(bool) },
+ func() bool {
155
+ if done.Load() == nil {
156
+ return false
157
+ }
158
+
159
+ return done.Load().(bool)
160
+ },
161
100*time.Millisecond,
162
1*time.Millisecond,
163
"TODO")
0 commit comments