Return-Path: X-Original-To: apmail-tapestry-commits-archive@minotaur.apache.org Delivered-To: apmail-tapestry-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 305A61169F for ; Thu, 28 Aug 2014 00:56:10 +0000 (UTC) Received: (qmail 10901 invoked by uid 500); 28 Aug 2014 00:56:09 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 10846 invoked by uid 500); 28 Aug 2014 00:56:09 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 10833 invoked by uid 99); 28 Aug 2014 00:56:09 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 00:56:09 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 9C850A017B4; Thu, 28 Aug 2014 00:56:09 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hlship@apache.org To: commits@tapestry.apache.org Date: Thu, 28 Aug 2014 00:56:09 -0000 Message-Id: <7ab81d1ed50c41618a26da45b20c305b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/3] git commit: Add a short sleep, not sure why this is suddenly necessary Repository: tapestry-5 Updated Branches: refs/heads/master 54b524e7d -> 194849cd1 Add a short sleep, not sure why this is suddenly necessary Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/b51a5d68 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/b51a5d68 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/b51a5d68 Branch: refs/heads/master Commit: b51a5d6880ef0209b2a48495807bb7445ffa7658 Parents: 54b524e Author: Howard M. Lewis Ship Authored: Wed Aug 27 17:04:25 2014 -0700 Committer: Howard M. Lewis Ship Committed: Wed Aug 27 17:04:25 2014 -0700 ---------------------------------------------------------------------- .../integration/app1/ZoneRefreshTest.java | 35 ++++++++++---------- 1 file changed, 18 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/b51a5d68/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java ---------------------------------------------------------------------- diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java index 3c116f0..d29d271 100644 --- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java +++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java @@ -47,23 +47,24 @@ public class ZoneRefreshTest extends App1TestCase @Test public void test_if_zone_with_context_works() throws Exception { - openBaseURL(); - clickAndWait("link=Zone Refresh With Context"); - - // assert that counter value didn't changed - assertText("zone", "false"); - Thread.sleep(2000l); - assertText("zone", "false"); - - // increment counter - click("link=Add"); - waitForAjaxRequestsToComplete(); - - // assert that counter value didn't changed - Thread.sleep(2000l); - assertText("zone", "true"); - Thread.sleep(2000l); - assertText("zone", "true"); + openBaseURL(); + clickAndWait("link=Zone Refresh With Context"); + + // assert that counter value didn't changed + assertText("zone", "false"); + Thread.sleep(2000l); + assertText("zone", "false"); + + // increment counter + click("link=Add"); + Thread.sleep(250l); + waitForAjaxRequestsToComplete(); + + // assert that counter value didn't changed + Thread.sleep(2000l); + assertText("zone", "true"); + Thread.sleep(2000l); + assertText("zone", "true"); } private void checkZoneValues(String zone, int times) throws Exception