Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: fix TestPGCoordinatorSingle_MissedHeartbeats flake #13686

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

Merged

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Jun 27, 2024

Fixes flake seen here: https://github.com/coder/coder/actions/runs/9695396986/job/26755085673

Problem is that with the mocked Clock we were trapping the first call into the clock to ensure the heartbeat was processes, but instead we should trap the last call, otherwise advancing the time can race with heartbeat processing.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @spikecurtis and the rest of your teammates on Graphite Graphite

@spikecurtis spikecurtis requested a review from johnstcn June 27, 2024 12:36
@spikecurtis spikecurtis marked this pull request as ready for review June 27, 2024 12:36
@spikecurtis spikecurtis merged commit ce7f13c into main Jun 27, 2024
32 checks passed
@spikecurtis spikecurtis deleted the spike/TestPGCoordinatorSingle_MissedHeartbeats-flake branch June 27, 2024 15:17
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants