Skip to content

Commit d03569a

Browse files
authored
SHARP-5722: Pass created settings to AtlasSearchTest and AtlasVectorTest (#1771)
1 parent 2c9c244 commit d03569a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/MongoDB.Driver.Tests/Search/AtlasSearchTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public AtlasSearchTests(ITestOutputHelper testOutputHelper) : base(testOutputHel
6666
var mongoClientSettings = MongoClientSettings.FromConnectionString(atlasSearchUri);
6767
mongoClientSettings.ClusterSource = DisposingClusterSource.Instance;
6868

69-
_mongoClient = new MongoClient(atlasSearchUri);
69+
_mongoClient = new MongoClient(mongoClientSettings);
7070
}
7171

7272
protected override void DisposeInternal() => _mongoClient.Dispose();

tests/MongoDB.Driver.Tests/Search/VectorSearchTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public VectorSearchTests(ITestOutputHelper testOutputHelper) : base(testOutputHe
4343
var mongoClientSettings = MongoClientSettings.FromConnectionString(atlasSearchUri);
4444
mongoClientSettings.ClusterSource = DisposingClusterSource.Instance;
4545

46-
_mongoClient = new MongoClient(atlasSearchUri);
46+
_mongoClient = new MongoClient(mongoClientSettings);
4747
}
4848

4949
protected override void DisposeInternal() => _mongoClient.Dispose();

0 commit comments

Comments
 (0)