From df4ba0d82c3042a86811b49941f2d7eb8ebf2ea6 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Thu, 21 Aug 2014 10:25:58 -0400 Subject: [PATCH] Trying to make testRemoteKill less prone to random failure (presumably on a heavily loaded machine). --- core/src/test/java/hudson/LauncherTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/hudson/LauncherTest.java b/core/src/test/java/hudson/LauncherTest.java index 9a72701efa..a6eacda33a 100644 --- a/core/src/test/java/hudson/LauncherTest.java +++ b/core/src/test/java/hudson/LauncherTest.java @@ -56,7 +56,7 @@ public class LauncherTest extends ChannelTestCase { p.kill(); assertTrue(p.join()!=0); long end = System.currentTimeMillis(); - assertTrue("join finished promptly", (end - start < 5000)); + assertTrue("join finished promptly", (end - start < 15000)); french.call(NOOP); // this only returns after the other side of the channel has finished executing cancellation Thread.sleep(2000); // more delay to make sure it's gone assertNull("process should be gone",ProcessTree.get().get(Integer.parseInt(FileUtils.readFileToString(tmp).trim())));