Skip to content

Commit

Permalink
Update testing.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sombre-hombre authored and umputun committed Jul 30, 2024
1 parent b144124 commit e5ca909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func MakeTestConnectionWithColl(t *testing.T, cname string) (mg *driver.Client,
opts := options.ClientOptions{}
opts.SetAppName("test")
opts.SetConnectTimeout(time.Second)
mg, err := driver.Connect(context.Background(), options.Client().ApplyURI(mongoURL))
mg, err := driver.Connect(context.Background(), opts.ApplyURI(mongoURL))
require.NoError(t, err, "failed to make mongo client")
coll = mg.Database("test").Collection(cname)
teardown = func() {
Expand Down

0 comments on commit e5ca909

Please sign in to comment.