From commits-return-9335-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Fri Oct 11 13:54:17 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id A9170180668 for ; Fri, 11 Oct 2019 15:54:16 +0200 (CEST) Received: (qmail 40668 invoked by uid 500); 11 Oct 2019 13:54:15 -0000 Mailing-List: contact commits-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list commits@groovy.apache.org Received: (qmail 40174 invoked by uid 99); 11 Oct 2019 13:54:14 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Oct 2019 13:54:14 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id DFAC2811C0; Fri, 11 Oct 2019 13:54:13 +0000 (UTC) Date: Fri, 11 Oct 2019 13:54:26 +0000 To: "commits@groovy.apache.org" Subject: [groovy] 13/23: Adjust period and sleep time in `testListenerEvent` test case (#1030) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: sunlan@apache.org In-Reply-To: <157080205307.25329.10587190922059189913@gitbox.apache.org> References: <157080205307.25329.10587190922059189913@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: groovy X-Git-Refname: refs/heads/GROOVY_3_0_X X-Git-Reftype: branch X-Git-Rev: 864540896a79aeacddc5ba45c59632ea60b50462 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20191011135413.DFAC2811C0@gitbox.apache.org> 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 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 {