mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 21:12:15 +00:00
Another attempt to diagnose a random test failure. (Cf. #1370.)
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user