Skip to content

Commit 91f87f3

Browse files
committed
updates
1 parent b03254b commit 91f87f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mongo/integration/cmd_monitoring_helpers_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func compareStartedEvents(mt *mtest.T, expectations []*cmdStartedEvt, id0, id1 b
327327
if evt == nil {
328328
return fmt.Errorf("expected CommandStartedEvent %s, got nil", expected.CommandName)
329329
}
330-
if expected.CommandName != "" {
330+
if expected.CommandName == "" {
331331
break
332332
} else if v, ok := expectedCmds[evt.CommandName]; ok && v {
333333
break
@@ -466,7 +466,7 @@ func compareSucceededEvents(mt *mtest.T, expectations []*cmdSucceededEvt) error
466466
if evt == nil {
467467
return fmt.Errorf("expected CommandSucceededEvent %s, got nil", expected.CommandName)
468468
}
469-
if expected.CommandName != "" {
469+
if expected.CommandName == "" {
470470
break
471471
} else if v, ok := expectedCmds[evt.CommandName]; ok && v {
472472
break
@@ -529,7 +529,7 @@ func compareFailedEvents(mt *mtest.T, expectations []*cmdFailedEvt) error {
529529
if evt == nil {
530530
return fmt.Errorf("expected CommandFailedEvent %s, got nil", expected.CommandName)
531531
}
532-
if expected.CommandName != "" {
532+
if expected.CommandName == "" {
533533
break
534534
} else if v, ok := expectedCmds[evt.CommandName]; ok && v {
535535
break

0 commit comments

Comments
 (0)