Skip to content

Commit 79f9a5a

Browse files
author
Nikolas De Giorgis
authored
Removed log call in goroutine (#149)
1 parent 3b8ea12 commit 79f9a5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/e2e/mongodbtests/mongodbtests.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ func IsReachableDuringWithConnection(mdb *mdbv1.MongoDB, interval time.Duration,
284284
for {
285285
select {
286286
case <-ctx.Done():
287-
t.Log("context cancelled, no longer checking connectivity") //nolint
288287
return
289288
case <-time.After(interval):
290289
if err := connectFunc(); err != nil {
@@ -352,7 +351,7 @@ func getCommandLineOptions(mdb *mdbv1.MongoDB, username string, password string)
352351
var result bson.M
353352
err = client.
354353
Database("admin").
355-
RunCommand(ctx, bson.D{{"getCmdLineOpts", 1}}).
354+
RunCommand(ctx, bson.D{primitive.E{Key: "getCmdLineOpts", Value: 1}}).
356355
Decode(&result)
357356

358357
return result, err

0 commit comments

Comments
 (0)