Skip to content

Commit

Permalink
reference MongoDB Driver 3.0 or later, use EphemeralMongo7 for testin…
Browse files Browse the repository at this point in the history
…g with MongoDB 7
  • Loading branch information
tniessner committed Jan 28, 2025
1 parent a703983 commit 58ab2b4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Source/EventFlow.MongoDB.Tests/EventFlow.MongoDB.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="MongoDB.Driver" Version="2.19.0" />
<PackageReference Include="Mongo2Go" Version="3.1.3" />
<PackageReference Include="MongoDB.Driver" Version="3.1.0" />
<PackageReference Include="EphemeralMongo7" Version="1.1.3" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\EventFlow.MongoDB\EventFlow.MongoDB.csproj" />
<ProjectReference Include="..\EventFlow.TestHelpers\EventFlow.TestHelpers.csproj" />
<ProjectReference Include="..\EventFlow.TestHelpers\EventFlow.TestHelpers.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,28 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

using System;
using EphemeralMongo;
using EventFlow.TestHelpers;
using EventFlow.TestHelpers.Suites;
using EventFlow.MongoDB.EventStore;
using EventFlow.MongoDB.Extensions;
using Microsoft.Extensions.DependencyInjection;
using NUnit.Framework;
using Mongo2Go;

namespace EventFlow.MongoDB.Tests.IntegrationTests.EventStores
{
[Category(Categories.Integration)]
[TestFixture]
public class MongoDbEventStoreTests : TestSuiteForEventStore
{
private MongoDbRunner _runner;
private IMongoRunner _runner;

protected override IServiceProvider Configure(IEventFlowOptions eventFlowOptions)
{
_runner = MongoDbRunner.Start();
_runner = MongoRunner.Run(new MongoRunnerOptions()

Check failure on line 42 in Source/EventFlow.MongoDB.Tests/IntegrationTests/EventStores/MongoDbEventStoreTests.cs

View workflow job for this annotation

GitHub Actions / Test results

EventFlow.MongoDB.Tests.IntegrationTests.EventStores.MongoDbEventStoreTests ► AggregateCanHaveMultipleCommits

Failed test found in: Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Error: System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
Raw output
System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
   at EphemeralMongo.MongodProcess.ConfigureAndWaitForReplicaSetReadiness()
   at EphemeralMongo.MongodProcess.Start()
   at EphemeralMongo.MongoRunner.RunInternal()
   at EphemeralMongo.MongoRunner.Run(MongoRunnerOptions options)
   at EventFlow.MongoDB.Tests.IntegrationTests.EventStores.MongoDbEventStoreTests.Configure(IEventFlowOptions eventFlowOptions) in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.MongoDB.Tests/IntegrationTests/EventStores/MongoDbEventStoreTests.cs:line 42
   at EventFlow.TestHelpers.IntegrationTest.SetUpIntegrationTest() in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.TestHelpers/IntegrationTest.cs:line 72
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 42 in Source/EventFlow.MongoDB.Tests/IntegrationTests/EventStores/MongoDbEventStoreTests.cs

View workflow job for this annotation

GitHub Actions / Test results

EventFlow.MongoDB.Tests.IntegrationTests.EventStores.MongoDbEventStoreTests ► AggregateEventStreamsAreSeperate

Failed test found in: Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Error: System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
Raw output
System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
   at EphemeralMongo.MongodProcess.ConfigureAndWaitForReplicaSetReadiness()
   at EphemeralMongo.MongodProcess.Start()
   at EphemeralMongo.MongoRunner.RunInternal()
   at EphemeralMongo.MongoRunner.Run(MongoRunnerOptions options)
   at EventFlow.MongoDB.Tests.IntegrationTests.EventStores.MongoDbEventStoreTests.Configure(IEventFlowOptions eventFlowOptions) in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.MongoDB.Tests/IntegrationTests/EventStores/MongoDbEventStoreTests.cs:line 42
   at EventFlow.TestHelpers.IntegrationTest.SetUpIntegrationTest() in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.TestHelpers/IntegrationTest.cs:line 72
   at InvokeStub_IntegrationTest.SetUpIntegrationTest(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
{
UseSingleNodeReplicaSet = true,
});

eventFlowOptions
.ConfigureMongoDb(_runner.ConnectionString, "eventflow")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using EphemeralMongo;
using EventFlow.Configuration;
using EventFlow.Extensions;
using EventFlow.MongoDB.Extensions;
Expand All @@ -36,7 +37,6 @@
using EventFlow.TestHelpers.Suites;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Mongo2Go;
using NUnit.Framework;

namespace EventFlow.MongoDB.Tests.IntegrationTests.ReadStores
Expand All @@ -47,11 +47,14 @@ public class MongoDbReadModelStoreTests : TestSuiteForReadModelStore
{
protected override Type ReadModelType { get; } = typeof(MongoDbThingyReadModel);

private MongoDbRunner _runner;
private IMongoRunner _runner;

protected override IServiceProvider Configure(IEventFlowOptions eventFlowOptions)
{
_runner = MongoDbRunner.Start();
_runner = MongoRunner.Run(new MongoRunnerOptions()

Check failure on line 54 in Source/EventFlow.MongoDB.Tests/IntegrationTests/ReadStores/MongoDbReadModelStoreTests.cs

View workflow job for this annotation

GitHub Actions / Test results

EventFlow.MongoDB.Tests.IntegrationTests.ReadStores.MongoDbReadModelStoreTests ► AsQueryableShouldNotBeEmpty

Failed test found in: Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Error: System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
Raw output
System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
   at EphemeralMongo.MongodProcess.ConfigureAndWaitForReplicaSetReadiness()
   at EphemeralMongo.MongodProcess.Start()
   at EphemeralMongo.MongoRunner.RunInternal()
   at EphemeralMongo.MongoRunner.Run(MongoRunnerOptions options)
   at EventFlow.MongoDB.Tests.IntegrationTests.ReadStores.MongoDbReadModelStoreTests.Configure(IEventFlowOptions eventFlowOptions) in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.MongoDB.Tests/IntegrationTests/ReadStores/MongoDbReadModelStoreTests.cs:line 54
   at EventFlow.TestHelpers.IntegrationTest.SetUpIntegrationTest() in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.TestHelpers/IntegrationTest.cs:line 72
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 54 in Source/EventFlow.MongoDB.Tests/IntegrationTests/ReadStores/MongoDbReadModelStoreTests.cs

View workflow job for this annotation

GitHub Actions / Test results

EventFlow.MongoDB.Tests.IntegrationTests.ReadStores.MongoDbReadModelStoreTests ► CanHandleMultipleMessageAtOnce

Failed test found in: Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Error: System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
Raw output
System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
   at EphemeralMongo.MongodProcess.ConfigureAndWaitForReplicaSetReadiness()
   at EphemeralMongo.MongodProcess.Start()
   at EphemeralMongo.MongoRunner.RunInternal()
   at EphemeralMongo.MongoRunner.Run(MongoRunnerOptions options)
   at EventFlow.MongoDB.Tests.IntegrationTests.ReadStores.MongoDbReadModelStoreTests.Configure(IEventFlowOptions eventFlowOptions) in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.MongoDB.Tests/IntegrationTests/ReadStores/MongoDbReadModelStoreTests.cs:line 54
   at EventFlow.TestHelpers.IntegrationTest.SetUpIntegrationTest() in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.TestHelpers/IntegrationTest.cs:line 72
   at InvokeStub_IntegrationTest.SetUpIntegrationTest(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
{
UseSingleNodeReplicaSet = true,
});

var resolver = eventFlowOptions
.RegisterServices(sr => sr.AddTransient(typeof(ThingyMessageLocator)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,26 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

using System;
using EphemeralMongo;
using EventFlow.Configuration;
using EventFlow.MongoDB.Extensions;
using EventFlow.TestHelpers;
using EventFlow.TestHelpers.Suites;
using Mongo2Go;
using NUnit.Framework;

namespace EventFlow.MongoDB.Tests.IntegrationTests.SnapshotStores
{
[Category(Categories.Integration)]
public class MongoDBSnapshotStoreTests : TestSuiteForSnapshotStore
{
private MongoDbRunner _runner;
private IMongoRunner _runner;

protected override IServiceProvider Configure(IEventFlowOptions eventFlowOptions)
{
_runner = MongoDbRunner.Start();
_runner = MongoRunner.Run(new MongoRunnerOptions()

Check failure on line 40 in Source/EventFlow.MongoDB.Tests/IntegrationTests/SnapshotStores/MongoDBSnapshotStoreTests.cs

View workflow job for this annotation

GitHub Actions / Test results

EventFlow.MongoDB.Tests.IntegrationTests.SnapshotStores.MongoDBSnapshotStoreTests ► DeleteSnapshotAsync_GetSnapshotAsync_NoneExistingSnapshotDoesNotThrow

Failed test found in: Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Error: System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
Raw output
System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
   at EphemeralMongo.MongodProcess.ConfigureAndWaitForReplicaSetReadiness()
   at EphemeralMongo.MongodProcess.Start()
   at EphemeralMongo.MongoRunner.RunInternal()
   at EphemeralMongo.MongoRunner.Run(MongoRunnerOptions options)
   at EventFlow.MongoDB.Tests.IntegrationTests.SnapshotStores.MongoDBSnapshotStoreTests.Configure(IEventFlowOptions eventFlowOptions) in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.MongoDB.Tests/IntegrationTests/SnapshotStores/MongoDBSnapshotStoreTests.cs:line 40
   at EventFlow.TestHelpers.IntegrationTest.SetUpIntegrationTest() in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.TestHelpers/IntegrationTest.cs:line 72
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 40 in Source/EventFlow.MongoDB.Tests/IntegrationTests/SnapshotStores/MongoDBSnapshotStoreTests.cs

View workflow job for this annotation

GitHub Actions / Test results

EventFlow.MongoDB.Tests.IntegrationTests.SnapshotStores.MongoDBSnapshotStoreTests ► DuplicateOperationExceptionIsThrown(1)

Failed test found in: Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53.trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Source/EventFlow.MongoDB.Tests/TestResults/_fv-az835-696_2025-01-28_17_45_53[1].trx Error: System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
Raw output
System.TimeoutException : Replica set initialization took longer than the specified timeout of 10 seconds. Consider increasing the value of 'ReplicaSetSetupTimeout'.
   at EphemeralMongo.MongodProcess.ConfigureAndWaitForReplicaSetReadiness()
   at EphemeralMongo.MongodProcess.Start()
   at EphemeralMongo.MongoRunner.RunInternal()
   at EphemeralMongo.MongoRunner.Run(MongoRunnerOptions options)
   at EventFlow.MongoDB.Tests.IntegrationTests.SnapshotStores.MongoDBSnapshotStoreTests.Configure(IEventFlowOptions eventFlowOptions) in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.MongoDB.Tests/IntegrationTests/SnapshotStores/MongoDBSnapshotStoreTests.cs:line 40
   at EventFlow.TestHelpers.IntegrationTest.SetUpIntegrationTest() in /home/runner/work/EventFlow/EventFlow/Source/EventFlow.TestHelpers/IntegrationTest.cs:line 72
   at InvokeStub_IntegrationTest.SetUpIntegrationTest(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
{
UseSingleNodeReplicaSet = true,
});

eventFlowOptions
.ConfigureMongoDb(_runner.ConnectionString, "eventflow")
Expand Down
2 changes: 1 addition & 1 deletion Source/EventFlow.MongoDB/EventFlow.MongoDB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="MongoDB.Driver" Version="2.19.0" />
<PackageReference Include="MongoDB.Driver" Version="[3.0.0,4.0)" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 58ab2b4

Please sign in to comment.