Skip to content

Commit

Permalink
Fix race in test
Browse files Browse the repository at this point in the history
  • Loading branch information
zalegrala committed Jul 31, 2024
1 parent 43b82e8 commit 52fd063
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tempodb/blocklist/poller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,17 +577,17 @@ func TestPollTolerateConsecutiveErrors(t *testing.T) {
nil,
},
"three": {
errors.New("tenant three error"),
errors.New("tenant three error"),
errors.New("tenant three error"),
errors.New("tenant x error"),
errors.New("tenant x error"),
errors.New("tenant x error"),
},
"four": {
errors.New("tenant four error"),
errors.New("tenant four error"),
errors.New("tenant four error"),
errors.New("tenant x error"),
errors.New("tenant x error"),
errors.New("tenant x error"),
},
},
expectedError: errors.New("tenant four err"),
expectedError: errors.New("tenant x err"), // test for tenant x err to avoid needing to care which of the last two tenants were caught
},
}

Expand Down

0 comments on commit 52fd063

Please sign in to comment.