servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r411547 - /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ExchangeCompletedListener.java
Date Sun, 04 Jun 2006 11:41:37 GMT
Author: gnodet
Date: Sun Jun  4 04:41:36 2006
New Revision: 411547

URL: http://svn.apache.org/viewvc?rev=411547&view=rev
Log:
Fix infinite wait instead of timeout

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ExchangeCompletedListener.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ExchangeCompletedListener.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ExchangeCompletedListener.java?rev=411547&r1=411546&r2=411547&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ExchangeCompletedListener.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ExchangeCompletedListener.java
Sun Jun  4 04:41:36 2006
@@ -65,8 +65,8 @@
                     break;
                 }
                 long remain = timeout - (System.currentTimeMillis() - start);
-                if (remain < 0) {
-                    assertTrue("Exchange is ACTIVE", active.getStatus() != ExchangeStatus.ACTIVE);
+                if (remain <= 0) {
+                    assertTrue("Exchange is ACTIVE: " + active, active.getStatus() != ExchangeStatus.ACTIVE);
                 } else {
                     exchanges.wait(remain);
                 }



Mime
View raw message