Skip to content

Commit b227d6f

Browse files
committed
Disable table scan for tests
1 parent 0908116 commit b227d6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/WorkflowCore.Tests.MongoDB/MongoDockerSetup.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using Docker.Testify;
3+
using MongoDB.Bson;
34
using MongoDB.Driver;
45
using Xunit;
56

@@ -23,6 +24,10 @@ public override bool TestReady()
2324
{
2425
var client = new MongoClient($"mongodb://localhost:{ExternalPort}");
2526
client.ListDatabases();
27+
28+
var command = new BsonDocument { { "setParameter", 1 }, { "notablescan", 1 } };
29+
client.GetDatabase("admin").RunCommand<BsonDocument>(command);
30+
2631
return true;
2732
}
2833
catch

0 commit comments

Comments
 (0)