geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject [15/35] incubator-geode git commit: GEODE-366: Wait for clear to be propegated in ClientHealthStatsDUnitTest
Date Tue, 03 Nov 2015 19:38:47 GMT
GEODE-366: Wait for clear to be propegated in ClientHealthStatsDUnitTest

The clear was showing up asynchronously on the second client. By moving
the clear up before an existing wait, it should get to the second
client before that client does a put.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/6d618bf8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/6d618bf8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/6d618bf8

Branch: refs/heads/develop
Commit: 6d618bf821b86e2ee954492e38deed5c9032349e
Parents: 320b6e4
Author: Dan Smith <upthewaterspout@apache.org>
Authored: Tue Oct 27 18:02:40 2015 -0700
Committer: Dan Smith <upthewaterspout@apache.org>
Committed: Tue Oct 27 18:04:18 2015 -0700

----------------------------------------------------------------------
 .../gemstone/gemfire/management/ClientHealthStatsDUnitTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6d618bf8/gemfire-core/src/test/java/com/gemstone/gemfire/management/ClientHealthStatsDUnitTest.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/management/ClientHealthStatsDUnitTest.java
b/gemfire-core/src/test/java/com/gemstone/gemfire/management/ClientHealthStatsDUnitTest.java
index 730cc9d..9a6c9be 100644
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/management/ClientHealthStatsDUnitTest.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/management/ClientHealthStatsDUnitTest.java
@@ -413,12 +413,12 @@ public class ClientHealthStatsDUnitTest extends DistributedTestCase
{
     assertEquals(r1.getEntry(k1).getValue(), client_k1);
     r1.put(k2, client_k2);
     assertEquals(r1.getEntry(k2).getValue(), client_k2);
+    r1.clear();
     try {
       Thread.sleep(10000);
     } catch (Exception e) {
       // sleep
     }
-    r1.clear();
 
   }
 


Mime
View raw message