This is an automated email from the ASF dual-hosted git repository.

wirebaron pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 46ee1c8  GEODE-5065: Add awaitability to testServerUpFirstClientLater 
(#1792)
46ee1c8 is described below

commit 46ee1c8939e4874cd34f75352eb359074c6587d7
Author: Brian Rowe <br...@pivotal.io>
AuthorDate: Thu Apr 12 15:11:33 2018 -0700

    GEODE-5065: Add awaitability to testServerUpFirstClientLater (#1792)
---
 .../cache/tier/sockets/DataSerializerPropagationDUnitTest.java       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/geode-core/src/test/java/org/apache/geode/internal/cache/tier/sockets/DataSerializerPropagationDUnitTest.java
 
b/geode-core/src/test/java/org/apache/geode/internal/cache/tier/sockets/DataSerializerPropagationDUnitTest.java
index f6367b6..29a177c 100644
--- 
a/geode-core/src/test/java/org/apache/geode/internal/cache/tier/sockets/DataSerializerPropagationDUnitTest.java
+++ 
b/geode-core/src/test/java/org/apache/geode/internal/cache/tier/sockets/DataSerializerPropagationDUnitTest.java
@@ -26,7 +26,9 @@ import java.io.DataInput;
 import java.io.DataOutput;
 import java.io.IOException;
 import java.util.Properties;
+import java.util.concurrent.TimeUnit;
 
+import org.awaitility.Awaitility;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 
@@ -417,7 +419,8 @@ public class DataSerializerPropagationDUnitTest extends 
JUnit4DistributedTestCas
         // Invoke getAll
         Region region = cache.getRegion(REGION_NAME);
         // Verify result size is correct
-        assertEquals(20, region.get(1));
+        Awaitility.await().atMost(10, TimeUnit.SECONDS)
+            .until(() -> assertEquals(20, region.get(1)));
       }
     });
   }

-- 
To stop receiving notification emails like this one, please contact
wireba...@apache.org.

Reply via email to