Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu committed Aug 15, 2024
1 parent 5fbdde6 commit d72dcff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mongo/integration/cmd_monitoring_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func checkExpectations(mt *mtest.T, expectations *[]*expectation, id0, id1 bson.
err = compareFailedEvent(mt, expectation)
}

assert.Nil(mt, err, "expectation comparison error at index %v: %s (%v %v)", idx, err, mtest.ServerVersion(), mtest.Serverless())
assert.Nil(mt, err, "expectation comparison error at index %v: %s", idx, err)
}
}

Expand Down
6 changes: 5 additions & 1 deletion mongo/integration/mtest/mongotest.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,13 @@ func (t *T) createTestClient() {
if err != nil {
t.Fatalf("error creating client: %v", err)
}
if err := t.Client.Connect(context.Background()); err != nil {
ctx := context.Background()
if err := t.Client.Connect(ctx); err != nil {
t.Fatalf("error connecting client: %v", err)
}
if err := t.Client.Ping(ctx, nil); err != nil {
t.Fatalf("error pinging client: %v", err)
}
}

func (t *T) createTestCollection() {
Expand Down

0 comments on commit d72dcff

Please sign in to comment.