Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky test #5298

Merged
merged 1 commit into from
Jun 21, 2023
Merged

Fix flaky test #5298

merged 1 commit into from
Jun 21, 2023

Conversation

charleskorn
Copy link
Contributor

What this PR does

This PR fixes a flaky test, TestBucketScanBlocksFinder_StopWhileRunningTheInitialScanOnManyBlocks that could sometimes panic due to missing mock setup.

I believe this was introduced in #5063 - previously, we always called Exists first, but as of #5063, this is no longer true, so we need to mock Get as well.

Which issue(s) this PR fixes or relates to

Fixes #5267

Checklist

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

@charleskorn charleskorn requested a review from pracucci June 21, 2023 04:53
@charleskorn charleskorn marked this pull request as ready for review June 21, 2023 04:54
@charleskorn charleskorn requested a review from a team as a code owner June 21, 2023 04:54
Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

@charleskorn charleskorn merged commit 2aaa28c into main Jun 21, 2023
@charleskorn charleskorn deleted the charleskorn/fix-flaky-test branch June 21, 2023 06:06
@pstibrany
Copy link
Member

One day we will rewrite it without using tightly coupled mocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky querier test with bucket client mock
3 participants