Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure failed tests report their exit code (#240)
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.
- Loading branch information