Skip to content

Commit 14ce687

Browse files
committed
Fix test that is failing on 3.4 sharded clusters.
1 parent ed005e2 commit 14ce687

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ public void Execute_should_return_expected_result(
136136
var result = ExecuteOperation(subject, async);
137137

138138
result["ok"].ToBoolean().Should().BeTrue();
139-
result["ns"].ToString().Should().Be(_collectionNamespace.FullName);
139+
if (result.Contains("ns"))
140+
{
141+
result["ns"].ToString().Should().Be(_collectionNamespace.FullName);
142+
}
140143
}
141144

142145
[SkippableTheory]

0 commit comments

Comments
 (0)