Skip to content

Commit

Permalink
fix test container not using replicasets (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
gottscj authored Oct 30, 2024
1 parent 5823ca5 commit 205cf5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hangfire.Mongo.Tests/Utils/MongoDbFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ public sealed class MongoIntegrationTestFixture : IAsyncLifetime
public readonly MongoDbContainer MongoDbContainer =
new MongoDbBuilder()
.WithImage("mongo:7.0")
.WithReplicaSet()
.Build();

public string MongoConnectionString { get; private set; }

public async Task InitializeAsync()
{
await MongoDbContainer.StartAsync();

MongoConnectionString = MongoDbContainer.GetConnectionString();
MongoConnectionString = MongoDbContainer.GetConnectionString() + "?directConnection=true";
}

public async Task DisposeAsync()
Expand Down

0 comments on commit 205cf5a

Please sign in to comment.