Skip to content

test(relay): check Run's error in the peers test - #58

Merged
JanWelker merged 1 commit into
mainfrom
test/relay-check-run-error
Oct 28, 2026
Merged

JanWelker merged 1 commit into
mainfrom
test/relay-check-run-error

Conversation

@JanWelker

Copy link
Copy Markdown
Owner

Warning

Rollout risk: none. Test-only change.

Manual step after merge: none. Renovate rebases #47 and its Go job should go green.

golangci-lint 2.15.0 (Renovate #47) reports internal/hubble/relay/client_test.go:199:2: Error return value is not checked (errcheck) on a bare <-done, where done is a chan error. The test now asserts context.Canceled, exactly as the sibling test at line 153 does.

Verified locally: go test ./internal/hubble/relay/ passes, and golangci-lint run ./... with 2.15.0 reports 0 issues.

golangci-lint 2.15's errcheck flags a bare receive from a chan error.
The sibling test already asserts context.Canceled; this one now does too,
which unblocks the golangci-lint 2.15.0 update in #47.
@JanWelker
JanWelker merged commit 5005267 into main Oct 28, 2026
4 checks passed
@JanWelker
JanWelker deleted the test/relay-check-run-error branch October 28, 2026 21:03
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.

1 participant