tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject tomee git commit: low numbers might lead to a delay of 0 which blows up the stop
Date Thu, 06 Apr 2017 09:23:13 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-1.7.x 7b1ca0b2e -> e47e5a276


low numbers might lead to a delay of 0 which blows up the stop


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/e47e5a27
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/e47e5a27
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/e47e5a27

Branch: refs/heads/tomee-1.7.x
Commit: e47e5a276e9c5b6b89f168c2c2146f217953dc15
Parents: 7b1ca0b
Author: Mark Struberg <struberg@apache.org>
Authored: Thu Apr 6 11:21:42 2017 +0200
Committer: Mark Struberg <struberg@apache.org>
Committed: Thu Apr 6 11:21:42 2017 +0200

----------------------------------------------------------------------
 .../resource/activemq/ActiveMQResourceAdapterControlTest.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/e47e5a27/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQResourceAdapterControlTest.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQResourceAdapterControlTest.java
b/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQResourceAdapterControlTest.java
index a574f59..09d8e4b 100644
--- a/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQResourceAdapterControlTest.java
+++ b/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQResourceAdapterControlTest.java
@@ -105,7 +105,7 @@ public class ActiveMQResourceAdapterControlTest {
         Mdb.awaiter.message = null;
         setControl("stop");
         // default would be wait 10s, but if machine is slow we compute it from the first
msg stats
-        final long waitWithoutResponse = Math.max(10, 5 * (end - start) / 1000);
+        final long waitWithoutResponse = Math.max(10, 1+ 5 * (end - start) / 1000);
         System.out.println("We'll wait " + waitWithoutResponse + "s to get a message on a
stopped listener");
         assertFalse(Mdb.awaiter.message, sendAndWait("Will be received after", waitWithoutResponse,
TimeUnit.SECONDS));
         assertNull(Mdb.awaiter.message);


Mime
View raw message