Skip to content

Commit d0d81ba

Browse files
committed
Added StorageEngines = "mmapv1" to tests that only work with the mmapv1 storage engine.
1 parent 7bbdb33 commit d0d81ba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/MongoDB.Driver.Core.Tests/Core/Operations/ListCollectionsUsingQueryOperationTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void Filter_get_and_set_should_work()
7272
}
7373

7474
[Test]
75-
[RequiresServer("EnsureCollectionsExist")]
75+
[RequiresServer("EnsureCollectionsExist", StorageEngines = "mmapv1")]
7676
public void Execute_should_return_the_expected_result(
7777
[Values(false, true)]
7878
bool async)
@@ -91,7 +91,7 @@ public void Execute_should_return_the_expected_result(
9191
[TestCase("{ name : \"regular\" }", "regular", true)]
9292
[TestCase("{ \"options.capped\" : true }", "capped", false)]
9393
[TestCase("{ \"options.capped\" : true }", "capped", true)]
94-
[RequiresServer("EnsureCollectionsExist")]
94+
[RequiresServer("EnsureCollectionsExist", StorageEngines = "mmapv1")]
9595
public void Execute_should_return_the_expected_result_when_filter_is_used(string filterString, string expectedName, bool async)
9696
{
9797
var filter = BsonDocument.Parse(filterString);
@@ -108,7 +108,7 @@ public void Execute_should_return_the_expected_result_when_filter_is_used(string
108108
}
109109

110110
[Test]
111-
[RequiresServer]
111+
[RequiresServer(StorageEngines = "mmapv1")]
112112
public void Execute_should_return_the_expected_result_when_the_database_does_not_exist(
113113
[Values(false, true)]
114114
bool async)

src/MongoDB.Driver.Core.Tests/Core/Operations/ListIndexesUsingQueryOperationTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void constructor_should_throw_when_collectionNamespace_is_null()
5757
}
5858

5959
[Test]
60-
[RequiresServer]
60+
[RequiresServer(StorageEngines = "mmapv1")]
6161
public void Execute_should_return_expected_result(
6262
[Values(false, true)]
6363
bool async)
@@ -72,7 +72,7 @@ public void Execute_should_return_expected_result(
7272
}
7373

7474
[Test]
75-
[RequiresServer]
75+
[RequiresServer(StorageEngines = "mmapv1")]
7676
public void Execute_should_return_expected_result_when_collection_does_not_exist(
7777
[Values(false, true)]
7878
bool async)
@@ -87,7 +87,7 @@ public void Execute_should_return_expected_result_when_collection_does_not_exist
8787
}
8888

8989
[Test]
90-
[RequiresServer]
90+
[RequiresServer(StorageEngines = "mmapv1")]
9191
public void Execute_should_return_expected_result_when_database_does_not_exist(
9292
[Values(false, true)]
9393
bool async)

0 commit comments

Comments
 (0)