Skip to content

Commit 3ff9db1

Browse files
authored
Merge pull request #78 from ornj/fix-test-exit-code
Fixes error code on test run
2 parents 7dbe9ae + 4c4dc8e commit 3ff9db1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parse_bench_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ func benchmarkParseLargeConfig(b *testing.B, sz int) {
9292
}
9393
}
9494

95-
func TestMain(b *testing.M) {
96-
b.Run()
95+
func TestMain(m *testing.M) {
96+
code := m.Run()
9797
if rm != nil {
9898
rm()
9999
}
100-
os.Exit(0)
100+
os.Exit(code)
101101
}
102102

103103
func BenchmarkParseLargeConfig_Slow_TokBuf_0(b *testing.B) { benchmarkParseLargeConfig(b, 0) }

0 commit comments

Comments
 (0)