Skip to content

Commit abea8d1

Browse files
committed
updates
1 parent adf4f79 commit abea8d1

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 errors.New("expected CommandStartedEvent, got nil")
329329
}
330-
if v, ok := expectedCmds[expected.CommandName]; ok && v {
330+
if v, ok := expectedCmds[evt.CommandName]; ok && v {
331331
break
332332
}
333333
}
@@ -464,7 +464,7 @@ func compareSucceededEvents(mt *mtest.T, expectations []*cmdSucceededEvt) error
464464
if evt == nil {
465465
return errors.New("expected CommandSucceededEvent, got nil")
466466
}
467-
if v, ok := expectedCmds[expected.CommandName]; ok && v {
467+
if v, ok := expectedCmds[evt.CommandName]; ok && v {
468468
break
469469
}
470470
}
@@ -525,7 +525,7 @@ func compareFailedEvents(mt *mtest.T, expectations []*cmdFailedEvt) error {
525525
if evt == nil {
526526
return errors.New("expected CommandFailedEvent, got nil")
527527
}
528-
if v, ok := expectedCmds[expected.CommandName]; ok && v {
528+
if v, ok := expectedCmds[evt.CommandName]; ok && v {
529529
break
530530
}
531531
}

0 commit comments

Comments
 (0)