Skip to content

chore(healthcheck): fix DERP test flakes #7211

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 3 commits into from
Apr 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! chore(healthcheck): fix DERP test flakes
  • Loading branch information
coadler committed Apr 19, 2023
commit 6f54a913cf53659bbc838f49cb08c487a0ff0d74
4 changes: 2 additions & 2 deletions coderd/healthcheck/derp.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@ func (r *DERPNodeReport) doExchangeMessage(ctx context.Context) {
ticker := time.NewTicker(time.Second)
defer ticker.Stop()

iter := 0
var iter uint8
for {
lastSent.Store(ptr.Ref(time.Now()))
err = send.Send(receive.SelfPublicKey(), []byte(fmt.Sprintf("%d", iter)))
err = send.Send(receive.SelfPublicKey(), []byte{iter})
if err != nil {
r.writeClientErr(sendID, xerrors.Errorf("send derp message: %w", err))
return
Expand Down