tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject [1/3] git commit: Add a short sleep, not sure why this is suddenly necessary
Date Thu, 28 Aug 2014 00:56:09 GMT
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 <hlship@apache.org>
Authored: Wed Aug 27 17:04:25 2014 -0700
Committer: Howard M. Lewis Ship <hlship@apache.org>
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


Mime
View raw message