Skip to content

Commit 041ed93

Browse files
committed
CSHARP-2293: Skip some CountDocuments tests on older servers that don't support aggregate with hint.
1 parent 3556fc9 commit 041ed93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/MongoDB.Driver.Core.Tests/Core/Operations/CountDocumentsOperationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public void Execute_should_return_expected_result_when_Hint_is_set(
292292
[Values(false, true)]
293293
bool async)
294294
{
295-
RequireServer.Check();
295+
RequireServer.Check().Supports(Feature.AggregateHint);
296296
EnsureTestData();
297297
var subject = new CountDocumentsOperation(_collectionNamespace, _messageEncoderSettings)
298298
{

0 commit comments

Comments
 (0)