@@ -313,7 +313,7 @@ func compareStartedEvent(mt *mtest.T, expectation *expectation, id0, id1 bson.Ra
313
313
}
314
314
315
315
if expected .CommandName != "" && expected .CommandName != evt .CommandName {
316
- return fmt .Errorf ("command name mismatch; expected %s, got %s" , expected .CommandName , evt .CommandName )
316
+ return fmt .Errorf ("command name mismatch for started event ; expected %s, got %s" , expected .CommandName , evt .CommandName )
317
317
}
318
318
if expected .DatabaseName != "" && expected .DatabaseName != evt .DatabaseName {
319
319
return fmt .Errorf ("database name mismatch; expected %s, got %s" , expected .DatabaseName , evt .DatabaseName )
@@ -429,7 +429,7 @@ func compareSucceededEvent(mt *mtest.T, expectation *expectation) error {
429
429
}
430
430
431
431
if expected .CommandName != "" && expected .CommandName != evt .CommandName {
432
- return fmt .Errorf ("command name mismatch; expected %s, got %s" , expected .CommandName , evt .CommandName )
432
+ return fmt .Errorf ("command name mismatch for succeeded event ; expected %s, got %s" , expected .CommandName , evt .CommandName )
433
433
}
434
434
435
435
eElems , err := expected .Reply .Elements ()
@@ -469,7 +469,7 @@ func compareFailedEvent(mt *mtest.T, expectation *expectation) error {
469
469
}
470
470
471
471
if expected .CommandName != "" && expected .CommandName != evt .CommandName {
472
- return fmt .Errorf ("command name mismatch; expected %s, got %s" , expected .CommandName , evt .CommandName )
472
+ return fmt .Errorf ("command name mismatch for failed event ; expected %s, got %s" , expected .CommandName , evt .CommandName )
473
473
}
474
474
return nil
475
475
}
0 commit comments