continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r332777 - /maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
Date Sat, 12 Nov 2005 14:32:48 GMT
Author: evenisse
Date: Sat Nov 12 06:32:45 2005
New Revision: 332777

URL: http://svn.apache.org/viewcvs?rev=332777&view=rev
Log:
Replace Thread.yield() by Thread.sleep( 1000 ), yield method use 100% of cpu, so IT test are
very slow.
Now I can execute continuum build in 3 minutes instead of >10 minutes

Modified:
    maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java

Modified: maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java?rev=332777&r1=332776&r2=332777&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
(original)
+++ maven/continuum/trunk/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
Sat Nov 12 06:32:45 2005
@@ -425,7 +425,7 @@
                 fail( "Timeout while waiting for build. Project id: " + projectId );
             }
 
-            Thread.yield();
+            Thread.sleep( 1000 );
         }
     }
 
@@ -462,7 +462,7 @@
                 fail( "Timeout while waiting for project '" + projectId + "' to be checked
out." );
             }
 
-            Thread.yield();
+            Thread.sleep( 1000 );
 
             project = getContinuum().getProjectWithCheckoutResult( projectId );
         }
@@ -505,7 +505,7 @@
                 fail( "Timeout while waiting for build #" + buildId + " to complete." );
             }
 
-            Thread.yield();
+            Thread.sleep( 1000 );
 
             build = getContinuum().getBuildResult( buildId );
         }



Mime
View raw message