@@ -313,7 +313,7 @@ func compareStartedEvent(mt *mtest.T, expectation *expectation, id0, id1 bson.Ra
313313 }
314314
315315 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 )
317317 }
318318 if expected .DatabaseName != "" && expected .DatabaseName != evt .DatabaseName {
319319 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 {
429429 }
430430
431431 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 )
433433 }
434434
435435 eElems , err := expected .Reply .Elements ()
@@ -469,7 +469,7 @@ func compareFailedEvent(mt *mtest.T, expectation *expectation) error {
469469 }
470470
471471 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 )
473473 }
474474 return nil
475475}
0 commit comments