File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
queue-based-load-leveling/src/test/java/com/iluwatar/queue/load/leveling Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2424 */
2525package com .iluwatar .queue .load .leveling ;
2626
27+ import static java .util .concurrent .CompletableFuture .anyOf ;
2728import static org .junit .jupiter .api .Assertions .assertEquals ;
2829import static org .junit .jupiter .api .Assertions .assertNotNull ;
30+ import static org .junit .jupiter .api .Assertions .assertTrue ;
2931
3032import lombok .extern .slf4j .Slf4j ;
3133import org .junit .jupiter .api .Test ;
@@ -84,7 +86,8 @@ void serviceExecutorWakeStateTest() throws InterruptedException {
8486 }
8587 var srvExeState = srvExeThr .getState ();
8688 LOGGER .info ("Current Service Executor State: " + srvExeState );
87- assertEquals (srvExeState , Thread .State .RUNNABLE );
89+ // assert that state changes from waiting
90+ assertTrue (srvExeState != Thread .State .WAITING );
8891
8992 }
9093
You can’t perform that action at this time.
0 commit comments