upgle commented on code in PR #5304:
URL: https://github.com/apache/openwhisk/pull/5304#discussion_r936168917


##########
tests/src/test/scala/org/apache/openwhisk/core/scheduler/queue/test/MemoryQueueFlowTests.scala:
##########
@@ -151,11 +164,11 @@ class MemoryQueueFlowTests
     container.send(fsm, getActivation(false))
     container.expectMsg(ActivationResponse(Left(NoActivationMessage())))
 
-    Thread.sleep(idleGrace.toMillis)
+    fsm ! StateTimeout

Review Comment:
   @style95 
   
   When `idleGrace` and `stopGrace`  times out, a StateTimeout message is sent.
   It explicitly sends a StateTimeout message, which is exactly the same as a 
message sent by timeout .
   
   ```scala
   when(Running, stateTimeout = queueConfig.idleGrace) {
   when(Idle, stateTimeout = queueConfig.stopGrace) {
   ```



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