Skip to content

Fix TestBadger#313

Merged
decentral1se merged 1 commit intossbc:masterfrom
KyleMaas:fix-testbadger
Jan 29, 2023
Merged

Fix TestBadger#313
decentral1se merged 1 commit intossbc:masterfrom
KyleMaas:fix-testbadger

Conversation

@KyleMaas
Copy link
Copy Markdown
Contributor

Adds a WaitGroup and associated logic so that BadgerBuilder queries wait until the indexes have caught up. This also means we can eliminate the Sleep() calls in the test, since it's now based on work being done rather than arbitrary times (other than the short built-in delay to get around Luigi not having a "queue empty" query system).

Fixes #266

@KyleMaas
Copy link
Copy Markdown
Contributor Author

Oh, I should note I ran this test over 1000 times without any failures.

Copy link
Copy Markdown
Member

@decentral1se decentral1se left a comment

Choose a reason for hiding this comment

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

Incredible 👏

@decentral1se decentral1se merged commit b259c2a into ssbc:master Jan 29, 2023
@decentral1se decentral1se mentioned this pull request Jan 29, 2023
25 tasks
@KyleMaas
Copy link
Copy Markdown
Contributor Author

Thanks!

@KyleMaas KyleMaas deleted the fix-testbadger branch January 29, 2023 19:32
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.

TestBadger still flaking

2 participants