kohlmu-pivotal commented on a change in pull request #7348:
URL: https://github.com/apache/geode/pull/7348#discussion_r817280291



##########
File path: 
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/InstantiatorPropagationDUnitTest.java
##########
@@ -424,23 +241,24 @@ public static void startServer() {
    * instantiators get propagated to client when client gets connected.
    */
   @Test
-  public void testServerUpFirstClientLater() throws Exception {
+  public void testServerUpFirstClientLater() {
     PORT1 = initServerCache(server1);
 
     unregisterInstantiatorsInAllVMs();
 
-    Wait.pause(3000);
+    GeodeAwaitility.await().atMost(3, TimeUnit.SECONDS)
+        
.untilAsserted(this::assertAllInstantiatorsHaveBeenUnregisteredInAllVMs);
 
-    server1.invoke(InstantiatorPropagationDUnitTest::registerTestObject1);
-    server1.invoke(InstantiatorPropagationDUnitTest::registerTestObject2);
+    server1
+        .invoke(() -> 
InstantiatorPropagationDUnitTest.registerTestObject("TestObject1", -100123));
+    server1
+        .invoke(() -> 
InstantiatorPropagationDUnitTest.registerTestObject("TestObject2", -100122));
 
     server1.invoke(() -> 
InstantiatorPropagationDUnitTest.verifyInstantiators(2));
 
     client1.invoke(() -> InstantiatorPropagationDUnitTest
         .createClientCache(NetworkUtils.getServerHostName(server1.getHost()), 
PORT1));
 
-    // // wait for client2 to come online
-    Wait.pause(3000);

Review comment:
       Removed this pause




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to