- Notifications
You must be signed in to change notification settings - Fork1k
fix(coderd/provisionerdserver): fix test flake in TestHeartbeat#11808
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
One nit about context timeout inline, but I don't need to review again
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Fixes a test flake seen here:https://github.com/coder/coder/actions/runs/7640549172/job/20815906797#step:5:431
I instead added a channel toEdit: now relying on goleak to ensure that the heartbeat loop is stopped.heartbeatLoop
to ensure that heartbeats are stopped when the ctx is cancelled.