Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
timothy-kim-mongo committed Jun 12, 2024
1 parent 2aab105 commit f906f2f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions mongo/integration/unified_runner_events_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@ func waitForEvent(mt *mtest.T, test *testCase, op *operation) {
expectedCount := int(op.Arguments.Lookup("count").Int32())

callback := func() bool {
// Stop loop if callback has been canceled.
select {
case <-context.Background().Done():
return true
default:
}

var count int
// Spec tests only ever wait for ServerMarkedUnknown SDAM events for the time being.
if eventType == "ServerMarkedUnknownEvent" {
Expand Down Expand Up @@ -134,13 +127,6 @@ func recordPrimary(mt *mtest.T, testCase *testCase) {

func waitForPrimaryChange(mt *mtest.T, testCase *testCase, op *operation) {
callback := func() bool {
// Stop loop if callback has been canceled.
select {
case <-context.Background().Done():
return true
default:
}

return getPrimaryAddress(mt, testCase.testTopology, false) != testCase.recordedPrimary
}

Expand Down

0 comments on commit f906f2f

Please sign in to comment.