Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 25, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Jan 24, 2024

Fixes a test flake seen here: https://github.com/coder/coder/actions/runs/7640549172/job/20815906797#step:5:431

I instead added a channel to heartbeatLoop to ensure that heartbeats are stopped when the ctx is cancelled. Edit: now relying on goleak to ensure that the heartbeat loop is stopped.

@johnstcn johnstcn self-assigned this Jan 24, 2024
@johnstcn johnstcn requested a review from spikecurtis January 24, 2024 19:59
@johnstcn johnstcn requested a review from spikecurtis January 25, 2024 11:26
Copy link
Contributor

@spikecurtis spikecurtis left a 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

@johnstcn johnstcn merged commit 8eae4f8 into main Jan 25, 2024
@johnstcn johnstcn deleted the cj/flake-provisionerdserver-heartbeat branch January 25, 2024 12:05
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy