commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1723464 - /commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
Date Thu, 07 Jan 2016 06:06:19 GMT
Author: sebb
Date: Thu Jan  7 06:06:19 2016
New Revision: 1723464

URL: http://svn.apache.org/viewvc?rev=1723464&view=rev
Log:
Remove Java 1.8 method call

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=1723464&r1=1723463&r2=1723464&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
Thu Jan  7 06:06:19 2016
@@ -72,9 +72,7 @@ public class Exec65Test {
 
         process.destroy();
 
-        while(process.isAlive()) {
-            Thread.sleep(50);
-        }
+        process.waitFor();
 
         assertTrue(process.exitValue() != 0);
     }



Mime
View raw message