ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gscok...@apache.org
Subject svn commit: r602094 - /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/lock/ArtifactLockStrategyTest.java
Date Fri, 07 Dec 2007 13:29:36 GMT
Author: gscokart
Date: Fri Dec  7 05:29:35 2007
New Revision: 602094

URL: http://svn.apache.org/viewvc?rev=602094&view=rev
Log:
increase timeout for slower machine (the test is taking 11 seconds on my machine, and the
thread-1 was the last one to finish)

Modified:
    ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/lock/ArtifactLockStrategyTest.java

Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/lock/ArtifactLockStrategyTest.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/lock/ArtifactLockStrategyTest.java?rev=602094&r1=602093&r2=602094&view=diff
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/lock/ArtifactLockStrategyTest.java
(original)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/lock/ArtifactLockStrategyTest.java
Fri Dec  7 05:29:35 2007
@@ -66,9 +66,9 @@
             settings2, createSlowResolver(settings2, 20), "org6#mod6.4;3", 20);
         ResolveThread t3 = asyncResolve(
             settings3, createSlowResolver(settings3, 5), "org6#mod6.4;3", 50);
-        t1.join(10000);
-        t2.join(10000);
-        t3.join(10000);
+        t1.join(100000);
+        t2.join(20000);
+        t3.join(20000);
         assertEquals(10, t1.getCount());
         assertFound("org6#mod6.4;3", t1.getFinalResult());
         assertEquals(20, t2.getCount());
@@ -140,7 +140,7 @@
         private IvySettings settings;
         private FileSystemResolver resolver;
         private String module;
-        private int loop;
+        private final int loop;
 
         private ResolvedModuleRevision finalResult;
         private int count;
@@ -167,10 +167,19 @@
                         throw new RuntimeException("module not found: " + module);
                     }
                     synchronized (this) {
+                        //Message.info(this.toString() + " count = " + count);
                         count++;
                     }
                 } catch (ParseException e) {
                     Message.info("parse exception "+e);
+                } catch (RuntimeException e) {
+                    Message.info("exception "+e);
+                    e.printStackTrace();
+                    throw e;
+                } catch (Error e) {
+                    Message.info("exception "+e);
+                    e.printStackTrace();
+                    throw e;
                 }
             }
             synchronized (this) {



Mime
View raw message