Skip to content

test(sshx,monitor): fail the package on a leaked goroutine - #301

Open
kzhx666 wants to merge 1 commit into
TooonyChen:mainfrom
kzhx666:test/goleak
Open

kzhx666 wants to merge 1 commit into
TooonyChen:mainfrom
kzhx666:test/goleak

Conversation

@kzhx666

@kzhx666 kzhx666 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Split out from #232 per review. goleak in the two packages that run a
goroutine per session. Rebased on current main — go.sum conflict resolved by
keeping main's entries and adding only go.uber.org/goleak v1.3.0.

Verified: go test ./internal/monitor/ ./internal/sshx/ passes.

Closes part of #232.

Both packages run one goroutine per session; a leak there only shows up
as memory that grows on a long-running app. goleak turns it into a test
failure.

This branch has not been deployed

No deployments
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.

2 participants