Skip to content

Conversation

mndrix
Copy link
Contributor

@mndrix mndrix commented Aug 27, 2020

Commit 72c1660 introduced TestMain, but forgot to call os.Exit with the value returned from m.Run This causes "go test" to exit with status 0, even if tests fail. Adding os.Exit to TestMain makes sure the success/failure of tests is correctly reported through the exit code.

Commit 72c1660 introduced TestMain, but forgot to call os.Exit with the value returned from m.Run  This causes "go test" to exit with status 0, even if tests fail.  Adding os.Exit to TestMain makes sure the success/failure of tests is correctly reported through the exit code.
@xiang90
Copy link
Contributor

xiang90 commented Apr 24, 2021

LGTM

@xiang90 xiang90 merged commit 126f21b into etcd-io:master Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants