Skip to content

Commit e5ca909

Browse files
sombre-hombreumputun
authored andcommitted
Update testing.go
1 parent b144124 commit e5ca909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func MakeTestConnectionWithColl(t *testing.T, cname string) (mg *driver.Client,
2929
opts := options.ClientOptions{}
3030
opts.SetAppName("test")
3131
opts.SetConnectTimeout(time.Second)
32-
mg, err := driver.Connect(context.Background(), options.Client().ApplyURI(mongoURL))
32+
mg, err := driver.Connect(context.Background(), opts.ApplyURI(mongoURL))
3333
require.NoError(t, err, "failed to make mongo client")
3434
coll = mg.Database("test").Collection(cname)
3535
teardown = func() {

0 commit comments

Comments
 (0)