From 9f558187aa8ca62d859dc0f4972ec08b0d98c87e Mon Sep 17 00:00:00 2001 From: sridharv Date: Sun, 27 Mar 2016 20:32:23 +0200 Subject: [PATCH] all tests pass + System.exit to force exit from tests --- MoreAsserts.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MoreAsserts.java b/MoreAsserts.java index 068ad7f..2f7f00f 100644 --- a/MoreAsserts.java +++ b/MoreAsserts.java @@ -83,9 +83,8 @@ public class MoreAsserts { failed = true; } } - if (failed) { - System.exit(1); - } + // NOTE: We need to call System.exit to force all go threads to exit. + System.exit(failed ? 1 : 0); } }