From 5fd2c1de5a65aca7da2200cd2926c6866802ffe8 Mon Sep 17 00:00:00 2001 From: kilic Date: Sat, 16 Jan 2021 10:02:56 +0300 Subject: [PATCH] add exit code --- bls12_381_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bls12_381_test.go b/bls12_381_test.go index 94fa48f..6c68dcb 100644 --- a/bls12_381_test.go +++ b/bls12_381_test.go @@ -6,6 +6,7 @@ import ( "errors" "flag" "math/big" + "os" "testing" ) @@ -15,7 +16,7 @@ func TestMain(m *testing.M) { _fuz := flag.Int("fuzz", 10, "# of iterations") flag.Parse() fuz = *_fuz - m.Run() + os.Exit(m.Run()) } func randScalar(max *big.Int) *big.Int {