@@ -100,7 +100,7 @@ public void test_execute() throws InterruptedException {
100100
101101        managedExecutorServicePerExtension .execute (runLatch ::countDown );
102102
103-         assertTrue (runLatch .await (5 , TimeUnit .SECONDS ));
103+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
104104    }
105105
106106    @ Test 
@@ -111,7 +111,7 @@ public void test_execute_plugin_stopped() throws Exception {
111111
112112        managedExecutorServicePerExtension .execute (runLatch ::countDown );
113113
114-         assertTrue (runLatch .await (1 , TimeUnit .SECONDS ));
114+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
115115    }
116116
117117    @ Test 
@@ -129,7 +129,7 @@ public void test_schedule_runnable() throws Exception {
129129        });
130130
131131        assertFalse (runLatch .await (250 , TimeUnit .MILLISECONDS ));
132-         assertTrue (runLatch .await (2 , TimeUnit .SECONDS ));
132+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
133133
134134        futureLatch .await ();
135135
@@ -145,37 +145,37 @@ public void test_schedule_runnable_plugin_stopped() throws Exception {
145145        final  CompletableScheduledFuture <?> schedule  =
146146                managedExecutorServicePerExtension .schedule (runLatch ::countDown , 500 , TimeUnit .MILLISECONDS );
147147
148-         assertTrue (runLatch .await (2 , TimeUnit .SECONDS ));
148+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
149149
150150        schedule .get ();
151151
152152        assertFalse (schedule .isCancelled ());
153153        assertTrue (schedule .isDone ());
154154    }
155155
156-     @ Test (timeout  = 5000 )
156+     @ Test (timeout  = 10000 )
157157    public  void  test_schedule_callable () throws  Exception  {
158158        final  CountDownLatch  runLatch  = new  CountDownLatch (1 );
159159        final  CountDownLatch  futureLatch  = new  CountDownLatch (1 );
160160
161161        final  CompletableScheduledFuture <String > scheduledFuture  = managedExecutorServicePerExtension .schedule (() -> {
162162            runLatch .countDown ();
163163            return  "test" ;
164-         }, 50 , TimeUnit .MILLISECONDS );
164+         }, 500 , TimeUnit .MILLISECONDS );
165165
166166        scheduledFuture .whenComplete ((string , throwable ) -> {
167167            if  (string .equals ("test" )) {
168168                futureLatch .countDown ();
169169            }
170170        });
171171
172-         assertFalse (runLatch .await (25 , TimeUnit .MILLISECONDS ));
172+         assertFalse (runLatch .await (250 , TimeUnit .MILLISECONDS ));
173173        assertFalse (futureLatch .await (0 , TimeUnit .MILLISECONDS ));
174-         assertTrue (runLatch .await (2 , TimeUnit .SECONDS ));
175-         assertTrue (futureLatch .await (2 , TimeUnit .SECONDS ));
174+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
175+         assertTrue (futureLatch .await (10 , TimeUnit .SECONDS ));
176176    }
177177
178-     @ Test (timeout  = 5000 )
178+     @ Test (timeout  = 10000 )
179179    public  void  test_schedule_callable_cancelled () throws  Exception  {
180180        final  CountDownLatch  runLatch  = new  CountDownLatch (1 );
181181        final  CountDownLatch  exceptionLatch  = new  CountDownLatch (1 );
@@ -198,7 +198,7 @@ public void test_schedule_callable_cancelled() throws Exception {
198198        assertTrue (exceptionLatch .await (2 , TimeUnit .SECONDS ));
199199    }
200200
201-     @ Test (timeout  = 5000 )
201+     @ Test (timeout  = 10000 )
202202    public  void  test_schedule_callable_plugin_stopped () throws  Exception  {
203203        final  CountDownLatch  runLatch  = new  CountDownLatch (1 );
204204
@@ -227,7 +227,7 @@ public void test_schedule_at_fixed_rate() throws Exception {
227227        final  CompletableScheduledFuture <?> scheduledFuture  =
228228                managedExecutorServicePerExtension .scheduleAtFixedRate (task , 10 , 10 , TimeUnit .MILLISECONDS );
229229
230-         assertTrue (runLatch .await (2 , TimeUnit .SECONDS ));
230+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
231231
232232        final  long  delay  = scheduledFuture .getDelay (TimeUnit .MILLISECONDS );
233233        assertTrue ("bad delay: "  + delay , delay  <= 10 );
@@ -240,7 +240,7 @@ public void test_schedule_at_fixed_rate() throws Exception {
240240        scheduledFuture .cancel (true );
241241
242242        // completes by cancellation 
243-         assertTrue (completeLatch .await (1 , TimeUnit .SECONDS ));
243+         assertTrue (completeLatch .await (10 , TimeUnit .SECONDS ));
244244    }
245245
246246    @ Test 
@@ -259,7 +259,7 @@ public void test_schedule_at_fixed_rate_canceled() throws Exception {
259259        final  CompletableScheduledFuture <?> scheduledFuture  =
260260                managedExecutorServicePerExtension .scheduleAtFixedRate (task , 10 , 10 , TimeUnit .MILLISECONDS );
261261
262-         assertTrue (runLatch .await (2 , TimeUnit .SECONDS ));
262+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
263263
264264        final  long  delay  = scheduledFuture .getDelay (TimeUnit .MILLISECONDS );
265265        assertTrue ("bad delay: "  + delay , delay  <= 100 );
@@ -293,7 +293,7 @@ public void test_schedule_with_fixed_delay() throws Exception {
293293        final  CompletableScheduledFuture <?> scheduledFuture  =
294294                managedExecutorServicePerExtension .scheduleWithFixedDelay (task , 10 , 10 , TimeUnit .MILLISECONDS );
295295
296-         assertTrue (runLatch .await (2 , TimeUnit .SECONDS ));
296+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
297297
298298        final  long  delay  = scheduledFuture .getDelay (TimeUnit .MILLISECONDS );
299299        assertTrue ("bad delay: "  + delay , delay  <= 10 );
@@ -308,7 +308,7 @@ public void test_schedule_with_fixed_delay() throws Exception {
308308        scheduledFuture .cancel (true );
309309
310310        // completes by cancellation 
311-         assertTrue (completeLatch .await (1 , TimeUnit .SECONDS ));
311+         assertTrue (completeLatch .await (10 , TimeUnit .SECONDS ));
312312    }
313313
314314    @ Test 
@@ -332,7 +332,7 @@ public void test_schedule_with_fixed_delay_exceptional() throws Exception {
332332        final  CompletableScheduledFuture <?> scheduledFuture  =
333333                managedExecutorServicePerExtension .scheduleWithFixedDelay (task , 10 , 10 , TimeUnit .MILLISECONDS );
334334
335-         assertTrue (runLatch .await (2 , TimeUnit .SECONDS ));
335+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
336336
337337        final  long  delay  = scheduledFuture .getDelay (TimeUnit .MILLISECONDS );
338338        assertTrue ("bad delay: "  + delay , delay  <= 10 );
@@ -378,7 +378,7 @@ public void test_submit_callable() throws Exception {
378378            }
379379        });
380380
381-         assertTrue (callableLatch .await (1 , TimeUnit .SECONDS ));
381+         assertTrue (callableLatch .await (10 , TimeUnit .SECONDS ));
382382    }
383383
384384    @ Test 
@@ -399,7 +399,7 @@ public void test_submit_callable_exceptional() throws Exception {
399399            }
400400        });
401401
402-         assertTrue (callableLatch .await (1 , TimeUnit .SECONDS ));
402+         assertTrue (callableLatch .await (10 , TimeUnit .SECONDS ));
403403
404404        assertTrue (submit .isCompletedExceptionally ());
405405
@@ -418,7 +418,7 @@ public void test_submit_runnable() throws Exception {
418418
419419        submit .whenComplete ((s , throwable ) -> runLatch .countDown ());
420420
421-         assertTrue (runLatch .await (1 , TimeUnit .SECONDS ));
421+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
422422    }
423423
424424    @ Test 
@@ -437,7 +437,7 @@ public void test_submit_runnable_exceptional() throws Exception {
437437            runLatch .countDown ();
438438        });
439439
440-         assertTrue (runLatch .await (1 , TimeUnit .SECONDS ));
440+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
441441
442442        assertTrue (submit .isCompletedExceptionally ());
443443
@@ -456,7 +456,7 @@ public void test_submit_runnable_with_result() throws Exception {
456456
457457        submit .whenComplete ((s , throwable ) -> s .countDown ());
458458
459-         assertTrue (runLatch .await (1 , TimeUnit .SECONDS ));
459+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
460460        assertTrue (submit .isDone ());
461461        assertFalse (submit .isCompletedExceptionally ());
462462    }
@@ -474,7 +474,7 @@ public void test_submit_runnable_with_result_plugin_stopped() throws Exception {
474474
475475        submit .whenComplete ((s , throwable ) -> s .countDown ());
476476
477-         assertTrue (runLatch .await (1 , TimeUnit .SECONDS ));
477+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
478478        assertTrue (submit .isDone ());
479479        assertFalse (submit .isCancelled ());
480480    }
@@ -498,7 +498,7 @@ public void test_submit_runnable_with_result_exceptional() throws Exception {
498498            }
499499        });
500500
501-         assertTrue (runLatch .await (5 , TimeUnit .SECONDS ));
501+         assertTrue (runLatch .await (10 , TimeUnit .SECONDS ));
502502
503503        assertTrue (submit .isDone ());
504504        assertTrue (submit .isCompletedExceptionally ());
@@ -530,7 +530,7 @@ public void test_invokeAll_callable() throws Exception {
530530            });
531531        }
532532
533-         assertTrue (invokeAllLatch .await (1 , TimeUnit .SECONDS ));
533+         assertTrue (invokeAllLatch .await (10 , TimeUnit .SECONDS ));
534534    }
535535
536536    @ Test 
0 commit comments