From commits-return-46501-archive-asf-public=cust-asf.ponee.io@tomee.apache.org Mon Jan 28 19:25:16 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 764E218067A for ; Mon, 28 Jan 2019 19:25:15 +0100 (CET) Received: (qmail 10700 invoked by uid 500); 28 Jan 2019 18:25:14 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 10683 invoked by uid 99); 28 Jan 2019 18:25: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; Mon, 28 Jan 2019 18:25:14 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 1D799855DA; Mon, 28 Jan 2019 18:25:14 +0000 (UTC) Date: Mon, 28 Jan 2019 18:25:15 +0000 To: "commits@tomee.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. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: radcortez@apache.org In-Reply-To: <154869991398.6468.4570038204437917074@gitbox.apache.org> References: <154869991398.6468.4570038204437917074@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: tomee X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: ad4d72b4e9b4f526cae3c64d7790d0eaa8a98d17 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20190128182514.1D799855DA@gitbox.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 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);