tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From radcor...@apache.org
Subject [tomee] 01/03: increase the time to wait for seeps. This will guarantee that there will be at least two sweeps. - When only sweep is executed it's LatestTime might be equal to expectedDate. The reason for that it is that sweep event is triggered at the beginnig of the seep and test might need less then 1ms to reach that code.
Date Mon, 28 Jan 2019 18:25:15 GMT
This is an automated email from the ASF dual-hosted git repository.

radcortez pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git

commit ad4d72b4e9b4f526cae3c64d7790d0eaa8a98d17
Author: Doychin Bondzhev <doychin@dsoft-bg.com>
AuthorDate: Mon Jan 7 22:40:06 2019 +0200

    increase the time to wait for seeps. This will guarantee that there will be at least two
sweeps. - When only sweep is executed it's LatestTime might be equal to expectedDate. The
reason for that it is that sweep event is triggered at the beginnig of the seep and test might
need less then 1ms to reach that code.
---
 .../java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
b/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
index b991671..f78f300 100644
--- a/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
+++ b/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
@@ -493,7 +493,7 @@ public class StatelessPoolStatsTest extends TestCase {
 
         deploy("testSweeps", properties);
 
-        Thread.sleep(200);
+        Thread.sleep(300);
 
         final Long sweeps = (Long) (server.getAttribute(objectName, "Sweeps"));
         assertTrue("sweeps=" + sweeps, sweeps >= 1L);


Mime
View raw message