Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Jun 20, 2024
1 parent 1fcfe67 commit aeb9825
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions integration/setup/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ func setClientPaths(uri string) (string, error) {
return u.String(), nil
}

// makeClient returns new client for the given working MongoDB URI
// (with fixes applied to `tlsCertificateKeyFile` and `tlsCaFile` file paths).
// makeClient returns new client for the given working MongoDB URI.
func makeClient(ctx context.Context, uri string) (*mongo.Client, error) {
clientOpts := options.Client().ApplyURI(uri)

Expand All @@ -84,8 +83,7 @@ func makeClient(ctx context.Context, uri string) (*mongo.Client, error) {
return client, nil
}

// setupClient returns test-specific client for the given MongoDB URI
// (with fixes applied to `tlsCertificateKeyFile` and `tlsCaFile` file paths).
// setupClient returns test-specific client for the given MongoDB URI.
//
// It disconnects automatically when test ends.
//
Expand Down

0 comments on commit aeb9825

Please sign in to comment.