Another attempt to diagnose a random test failure. (Cf. #1370.)

This commit is contained in:
Jesse Glick committed 2014-08-28 17:02:27 -04:00
1 parent bdc91654f6
commit d33a63225b
1 file changed
+4 -2
@@ -59,12 +59,14 @@ public class ConnectionTest extends Assert {
t1.join(9999);
t2.join(9999);
if (e != null) {
throw e;
}
if (t1.isAlive() || t2.isAlive()) {
t1.interrupt();
t2.interrupt();
throw new Error("thread is still alive");
}
if (e!=null) throw e;
}
}