advancedxy commented on code in PR #428:
URL: https://github.com/apache/incubator-uniffle/pull/428#discussion_r1050360591


##########
common/src/test/java/org/apache/uniffle/common/GrpcServerTest.java:
##########
@@ -72,13 +72,14 @@ public void testGrpcExecutorPool() throws Exception {
       });
     }
 
-    Thread.sleep(1000L);
+    Thread.sleep(100);
     double activeThreads = 
grpcMetrics.getGaugeMap().get(GRPC_SERVER_EXECUTOR_ACTIVE_THREADS_KEY).get();
     assertEquals(2, activeThreads);
     double queueSize = 
grpcMetrics.getGaugeMap().get(GRPC_SERVER_EXECUTOR_BLOCKING_QUEUE_SIZE_KEY).get();
     assertEquals(1, queueSize);
 
     countDownLatch.await();
+    Thread.sleep(100);

Review Comment:
   I have another pr to refactor test codes, let me move this code to that pr.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to