You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by ra...@apache.org on 2019/01/28 18:25:14 UTC

[tomee] branch master updated (d5f01a6 -> 1485fcb)

This is an automated email from the ASF dual-hosted git repository.

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


    from d5f01a6  closes apache/tomee#362 *Merged*
     new ad4d72b  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.
     new 0f0afdf  No need to increase time. Provide MS unit because by default it is minutes.
     new 1485fcb  closes apache/tomee#363 *Merged*

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/openejb/core/stateless/StatelessPoolStatsTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


[tomee] 02/03: No need to increase time. Provide MS unit because by default it is minutes.

Posted by ra...@apache.org.
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 0f0afdfab3381efab14338f67d8cafd067037662
Author: Doychin Bondzhev <do...@dsoft-bg.com>
AuthorDate: Mon Jan 7 22:40:06 2019 +0200

    No need to increase time. Provide MS unit because by default it is minutes.
---
 .../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 f78f300..73fafa0 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
@@ -487,7 +487,7 @@ public class StatelessPoolStatsTest extends TestCase {
      */
     public void testSweeps() throws Exception {
         final Properties properties = new Properties();
-        properties.setProperty("SweepInterval", "100");
+        properties.setProperty("SweepInterval", "100 MS");
 
         final Date expectedDate = new Date(); // now
 


[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.

Posted by ra...@apache.org.
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 <do...@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);


[tomee] 03/03: closes apache/tomee#363 *Merged*

Posted by ra...@apache.org.
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 1485fcb26b4459ab251e084d8b9e5585a2abf24f
Author: Roberto Cortez <ra...@yahoo.com>
AuthorDate: Mon Jan 28 18:25:09 2019 +0000

    closes apache/tomee#363 *Merged*