Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: Avoid logging to stdout in devtunnel test #3194

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 1 commit into from
Jul 26, 2022

Conversation

mafredri
Copy link
Member

The device keeps logging to the logger even after dev.Close() but
doing that with t.Log is unsafe (test has ended). This is why
slogtest was used.

dev.Close() has a wait on encryption and decryption routines, however,
these are left running even after the wait. The implementation uses the
WaitGroups in a weird way.

The device keeps logging to the logger even after `dev.Close()` but
doing that with `t.Log` is unsafe (test has ended). This is why
`slogtest` was used.

`dev.Close()` has a wait on encryption and decryption routines, however,
these are left running even after the wait. The implementation uses the
WaitGroups in a weird way.
@mafredri mafredri merged commit f34b500 into main Jul 26, 2022
@mafredri mafredri deleted the mafredri/fix-devtunnel-test-logging branch July 26, 2022 09:20
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