From ebfa6a0e2dcb6ac4c657574ffa3b649702b1d323 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sat, 7 Nov 2009 00:51:39 +0000 Subject: [PATCH] the test is still failing. adding more delay git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23556 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/test/java/hudson/LauncherTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/test/java/hudson/LauncherTest.java b/core/src/test/java/hudson/LauncherTest.java index 429d107908..ccdc065e6a 100644 --- a/core/src/test/java/hudson/LauncherTest.java +++ b/core/src/test/java/hudson/LauncherTest.java @@ -51,7 +51,8 @@ public class LauncherTest extends ChannelTestCase { assertTrue(p.join()!=0); long end = System.currentTimeMillis(); assertTrue("join finished promptly", (end - start < 5000)); - french.call(NOOP); // this only returns after the other side of the channel has finished executing cancellation + 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()))); // Manual version of test: set up instance w/ one slave. Now in script console