Skip to content

Fix flaky TestLoader_ShouldCacheIndexNotFoundOnBackgroundUpdates#7358

Merged
SungJin1212 merged 1 commit intocortexproject:masterfrom
SungJin1212:Fix-flaky-TestLoader_ShouldCacheIndexNotFoundOnBackgroundUpdates
Mar 18, 2026
Merged

Fix flaky TestLoader_ShouldCacheIndexNotFoundOnBackgroundUpdates#7358
SungJin1212 merged 1 commit intocortexproject:masterfrom
SungJin1212:Fix-flaky-TestLoader_ShouldCacheIndexNotFoundOnBackgroundUpdates

Conversation

@SungJin1212
Copy link
Member

This PR fixes the flaky test TestLoader_ShouldCacheIndexNotFoundOnBackgroundUpdates, adding test.Poll to wait until the bucket index is offloaded.

How to reproduce

go test -count=100 -race -run TestLoader_ShouldCacheIndexNotFoundOnBackgroundUpdates ./pkg/storage/tsdb/bucketindex

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 18, 2026
@SungJin1212 SungJin1212 merged commit 8b79727 into cortexproject:master Mar 18, 2026
64 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size/S type/flaky-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants