Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikus1993 committed Aug 15, 2023
1 parent 9b136b2 commit fb86b3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mongodb/mongo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ func TestMongoContainerPing(t *testing.T) {
if err != nil {
t.Fatal(fmt.Errorf("can't download mongo conectionstring, %w", err))
}
mongoClient, err := mongo.NewClient(options.Client().ApplyURI(connectionString))
mongoClient, err := mongo.Connect(ctx, options.Client().ApplyURI(connectionString))
if err != nil {
t.Fatal(fmt.Errorf("error creating mongo client: %w", err))
}

err = mongoClient.Connect(ctx)
if err != nil {
t.Fatal(fmt.Errorf("error connectiong mongo client: %w", err))
}
Expand Down

0 comments on commit fb86b3f

Please sign in to comment.