groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 13/23: Adjust period and sleep time in `testListenerEvent` test case (#1030)
Date Fri, 11 Oct 2019 13:54:26 GMT
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 864540896a79aeacddc5ba45c59632ea60b50462
Author: Daniel.Sun <sunlan@apache.org>
AuthorDate: Fri Oct 11 14:18:04 2019 +0800

    Adjust period and sleep time in `testListenerEvent` test case (#1030)
    
    (cherry picked from commit 74513270e6370e4e640005ad641061e3fdb3c644)
---
 .../src/test/groovy/groovy/jmx/builder/JmxListenerFactoryTest.groovy  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxListenerFactoryTest.groovy
b/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxListenerFactoryTest.groovy
index c7a0e26..d131b1b 100644
--- a/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxListenerFactoryTest.groovy
+++ b/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxListenerFactoryTest.groovy
@@ -45,11 +45,11 @@ class JmxListenerFactoryTest extends GroovyTestCase {
 
     void testListenerEvent() {
         def eventCount = 0
-        builder.timer(name: "test:type=timer", period: 400).start()
+        builder.timer(name: "test:type=timer", period: 200).start()
         builder.listener(from: "test:type=timer", call: {event ->
             eventCount = eventCount + 1
         })
-        sleep 1100
+        sleep 1300
         assert eventCount > 1
 
         shouldFail {


Mime
View raw message