Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu committed Aug 9, 2024
1 parent b03254b commit 91f87f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mongo/integration/cmd_monitoring_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func compareStartedEvents(mt *mtest.T, expectations []*cmdStartedEvt, id0, id1 b
if evt == nil {
return fmt.Errorf("expected CommandStartedEvent %s, got nil", expected.CommandName)
}
if expected.CommandName != "" {
if expected.CommandName == "" {
break
} else if v, ok := expectedCmds[evt.CommandName]; ok && v {
break
Expand Down Expand Up @@ -466,7 +466,7 @@ func compareSucceededEvents(mt *mtest.T, expectations []*cmdSucceededEvt) error
if evt == nil {
return fmt.Errorf("expected CommandSucceededEvent %s, got nil", expected.CommandName)
}
if expected.CommandName != "" {
if expected.CommandName == "" {
break
} else if v, ok := expectedCmds[evt.CommandName]; ok && v {
break
Expand Down Expand Up @@ -529,7 +529,7 @@ func compareFailedEvents(mt *mtest.T, expectations []*cmdFailedEvt) error {
if evt == nil {
return fmt.Errorf("expected CommandFailedEvent %s, got nil", expected.CommandName)
}
if expected.CommandName != "" {
if expected.CommandName == "" {
break
} else if v, ok := expectedCmds[evt.CommandName]; ok && v {
break
Expand Down

0 comments on commit 91f87f3

Please sign in to comment.