Skip to content

Fix intermittent notifier stress test#261

Merged
bgentry merged 1 commit intomasterfrom
brandur-fix-notifier-intermittent-test
Mar 11, 2024
Merged

Fix intermittent notifier stress test#261
bgentry merged 1 commit intomasterfrom
brandur-fix-notifier-intermittent-test

Conversation

@brandur
Copy link
Contributor

@brandur brandur commented Mar 10, 2024

Here, fix an intermittent stress test in the notifier package. This is
one that I added last minute in #258 in response to code review, so I
missed the intermittency because it didn't fail on any of the last
pushes that I made, but I noticed it failing today [1].

Luckily, it's quite a simple where we just have to make sure that the
test waits for one of the test goroutines to return before quitting. Ran
at -race -count 1000 locally and no longer seeing any intermittency.

[1] https://github.com/riverqueue/river/actions/runs/8223455278/job/22486174354

Here, fix an intermittent stress test in the notifier package. This is
one that I added last minute in #258 in response to code review, so I
missed the intermittency because it didn't fail on any of the last
pushes that I made, but I noticed it failing today [1].

Luckily, it's quite a simple where we just have to make sure that the
test waits for one of the test goroutines to return before quitting. Ran
at `-race -count 1000` locally and no longer seeing any intermittency.

[1] https://github.com/riverqueue/river/actions/runs/8223455278/job/22486174354
@brandur brandur force-pushed the brandur-fix-notifier-intermittent-test branch from 62f0b92 to 88f9dd3 Compare March 10, 2024 17:48
@bgentry bgentry self-requested a review March 11, 2024 14:45
@bgentry bgentry merged commit 19dd186 into master Mar 11, 2024
@bgentry bgentry deleted the brandur-fix-notifier-intermittent-test branch March 11, 2024 14:46
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.

2 participants