Commits

Michael Heemskerk committed 15f58a7

NONE: Increase test timeouts to allow the slow slow Windows bamboo agent to complete

  • Participants
  • Parent commits f5e54f7

Comments (0)

Files changed (2)

File src/test/java/com/atlassian/utils/process/ExternalProcessMonitorTest.java

 
         verify(monitor, never()).onAfterFinished(same(process));
 
-        assertTrue(process.finish(4000));
+        assertTrue(process.finish(15000));
         verify(monitor).onAfterFinished(same(process));
     }
 

File src/test/java/com/atlassian/utils/process/RecursiveKillTest.java

 
 public class RecursiveKillTest {
 
-    @Test(timeout = 10 * 1000)
+    @Test(timeout = 30 * 1000)
     public void testSimpleRecursiveKill() throws InterruptedException {
         //we can only live on windows...
         assumeTrue(SystemUtils.IS_OS_WINDOWS);
 
         proc.start();
         long start = System.currentTimeMillis();
-        latchForStart.await(8, TimeUnit.SECONDS);
-        assertTrue("Process startup time exceeded", ((System.currentTimeMillis() - start) < 8000));
+        latchForStart.await(25, TimeUnit.SECONDS);
+        assertTrue("Process startup time exceeded", ((System.currentTimeMillis() - start) < 25000));
         assertEquals("6 processes should have been started", 6, levels.size());
 
         proc.cancel();