File tree 1 file changed +3
-3
lines changed
src/test/java/dev/failsafe/functional
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ public void testFallbackTimeoutWithBlockedSupplier() {
206
206
fbStats .reset ();
207
207
}, Failsafe .with (fallback ).compose (timeout ), ctx -> {
208
208
System .out .println ("Executing" );
209
- Thread .sleep (100 );
209
+ Thread .sleep (200 );
210
210
throw new Exception ();
211
211
}, (f , e ) -> {
212
212
assertEquals (e .getAttemptCount (), 1 );
@@ -216,11 +216,11 @@ public void testFallbackTimeoutWithBlockedSupplier() {
216
216
}, IllegalStateException .class );
217
217
218
218
// Test without interrupt
219
- Timeout <Object > timeout = withStatsAndLogs (Timeout .builder (Duration .ofMillis (1 )), timeoutStats ).build ();
219
+ Timeout <Object > timeout = withStatsAndLogs (Timeout .builder (Duration .ofMillis (100 )), timeoutStats ).build ();
220
220
test .accept (timeout );
221
221
222
222
// Test with interrupt
223
- timeout = withStatsAndLogs (Timeout .builder (Duration .ofMillis (1 )).withInterrupt (), timeoutStats ).build ();
223
+ timeout = withStatsAndLogs (Timeout .builder (Duration .ofMillis (100 )).withInterrupt (), timeoutStats ).build ();
224
224
test .accept (timeout );
225
225
}
226
226
You can’t perform that action at this time.
0 commit comments