Skip to content

Commit 5d9aa97

Browse files
vincentkamrstam
authored andcommitted
CSHARP-2761: Fix error message in command monitoring test runner
1 parent 4908a9e commit 5d9aa97

File tree

1 file changed

+1
-1
lines changed
  • tests/MongoDB.Driver.Tests/Specifications/command-monitoring

1 file changed

+1
-1
lines changed

tests/MongoDB.Driver.Tests/Specifications/command-monitoring/TestRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public void RunTestDefinition(IEnumerable<BsonDocument> data, string databaseNam
161161
var expectations = (BsonArray)definition["expectations"];
162162
if (!SpinWait.SpinUntil(() => __capturedEvents.Count == expectations.Count, TimeSpan.FromSeconds(5)))
163163
{
164-
throw new Exception($"Expected {__capturedEvents.Count} events but only {expectations.Count} events were captured.");
164+
throw new Exception($"Expected {expectations.Count} events but only {__capturedEvents.Count} events were captured.");
165165
}
166166

167167
long? operationId = null;

0 commit comments

Comments
 (0)