tag:help.appveyor.com,2012-11-13:/discussions/problems/18117-running-test-with-mongo2goAppVeyor: Discussion 2019-01-22T21:00:20Ztag:help.appveyor.com,2012-11-13:Comment/465154062018-11-20T00:21:32Z2018-11-20T00:21:32ZRunning tests with Mongo2Go<div><p>It looks like recent builds are succeeding, is this still a problem for you?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/465154062018-11-20T20:34:33Z2018-11-20T20:34:33ZRunning tests with Mongo2Go<div><p>Yes, it’s still an issue.<br>
Same thing, mongo2go is trying to find available port. You can see this in test report.<br>
<a href="https://ci.appveyor.com/project/borkke/opentracing-csharp-mongo/builds/20390197/tests">https://ci.appveyor.com/project/borkke/opentracing-csharp-mongo/bui...</a></p>
<p>Tests are timing out, I’m just not failing entire bild (this is only for now).</p></div>borkketag:help.appveyor.com,2012-11-13:Comment/465154062018-11-21T08:06:19Z2018-11-21T08:06:19ZRunning tests with Mongo2Go<div><p>Is this running fine on your local machine?</p>
<p>Take a look at <a href="https://github.com/Mongo2Go/Mongo2Go/issues/54">this discussion</a>.<br>
A brief look at your test code shows that you are not disposing the MondoDbRunner after each test.<br>
Perhaps its worth trying that.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/465154062018-11-21T19:34:14Z2018-11-21T19:34:14ZRunning tests with Mongo2Go<div><p>Yes it’s working fine locally.</p>
<p>I am not disposing MongoDbRunner intentionality. I’m trying to reuse sinle instance throughout all my tests.</p>
<p>I’m using this MongoFixture do deal with starting and stopping.<br>
<a href="https://github.com/borkke/opentracing-csharp-mongo/blob/master/test/OpenTracing.Contrib.Mongo.Test/MongoFixture.cs">https://github.com/borkke/opentracing-csharp-mongo/blob/master/test...</a></p></div>borkketag:help.appveyor.com,2012-11-13:Comment/465154062018-11-22T01:46:09Z2018-11-22T01:46:09ZRunning tests with Mongo2Go<div><p>It may work locally due to many more system resources available.</p>
<p>I would suggest that you access the build worker via <a href="https://www.appveyor.com/docs/how-to/rdp-to-build-worker/">RDP</a>, run the tests manually, and possibly even monitor the processes that are created.</p></div>Owen McDonnell