Open marco-merola-ef opened 3 weeks ago
Do you get this error on every run, or only on the second run? If so, can you manuall kill the currently running mongod process and try again? That helps me, see #58.
I'm experiencing the same issue. We have a dotnet solution with several xUnit test projects performing tests using EphemeralMongo.
I use following command to run my tests: dotnet test MySolution.sln
Locally (on Macbook Pro with M2 chip), this works without any issues.
However, in a docker build using mcr.microsoft.com/dotnet/sdk:8.0 as base image, this results in the same error as described in bug description.
@wouterSeyen I managed to solve it by using dotnet test container for mongo: https://dotnet.testcontainers.org/modules/mongodb/
Hi, I am getting this error when trying to start the MongoRunner on a github job runner with
ubuntu-24.04
Error Message: System.TimeoutException : MongoDB connection availability took longer than the specified timeout of 30 seconds. Consider increasing the value of 'ConnectionTimeout'. Stack Trace: at EphemeralMongo.MongodProcess.StartAndWaitForConnectionReadiness() at EphemeralMongo.MongodProcess.Start() at EphemeralMongo.MongoRunner.RunInternal() at EphemeralMongo.MongoRunner.Run(MongoRunnerOptions options)
Any suggestions?