Skip to content
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

Avoid os.Exit or handle defer properly #26

Open
gfyrag opened this issue Sep 4, 2022 · 0 comments
Open

Avoid os.Exit or handle defer properly #26

gfyrag opened this issue Sep 4, 2022 · 0 comments

Comments

@gfyrag
Copy link
Contributor

gfyrag commented Sep 4, 2022

https://github.com/numary/webhooks/blob/e60e487505a8291cc9fb2a15f05b85d6c347e112/test/test_test.go#L56

os.Exit() force a process exit discarding all declared defer.

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

No branches or pull requests

1 participant