You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by sg...@apache.org on 2016/01/06 11:26:13 UTC

svn commit: r1723271 - /commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java

Author: sgoeschl
Date: Wed Jan  6 10:26:13 2016
New Revision: 1723271

URL: http://svn.apache.org/viewvc?rev=1723271&view=rev
Log:
[EXEC-65] Watchdog can't destroy 'sudo' and 'sleep' - increase timeouts for regression tests.

Modified:
    commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java

Modified: commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java?rev=1723271&r1=1723270&r2=1723271&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java (original)
+++ commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java Wed Jan  6 10:26:13 2016
@@ -32,7 +32,7 @@ public class Exec65Test {
     private static final int TIMEOUT = 3000;
     private final File testDir = new File("src/test/scripts");
 
-    @Test(expected = ExecuteException.class, timeout = 2*TIMEOUT)
+    @Test(expected = ExecuteException.class, timeout = 15000)
     public void testExec65WitSleepUsingCommandLine() throws Exception
     {
         if(OS.isFamilyUnix())
@@ -48,7 +48,7 @@ public class Exec65Test {
         }
     }
 
-    @Test(expected = ExecuteException.class, timeout = 2*TIMEOUT)
+    @Test(expected = ExecuteException.class, timeout = 15000)
     public void testExec65WithSleepUsingShellScript() throws Exception
     {
         final DefaultExecutor executor = new DefaultExecutor();
@@ -64,7 +64,7 @@ public class Exec65Test {
      * Please note that this tests make assumptions about the environment. It assumes
      * that user "root" exists and that the current user is not a "sudoer" already.
      */
-    @Test(expected = ExecuteException.class, timeout = 2*TIMEOUT)
+    @Test(expected = ExecuteException.class, timeout = 15000)
     public void testExec65WithSudoUsingShellScript() throws Exception
     {
         if(OS.isFamilyUnix())