@@ -44,31 +44,36 @@ public static Collection<TestCase> parameters() throws Exception {
44
44
return Arrays .asList (
45
45
new TestCase ().backoffStrategy (BackoffStrategy .defaultStrategy (RetryMode .STANDARD ))
46
46
.retriesAttempted (0 )
47
- .expectedMaxDelay (Duration .ofSeconds ( 1 ))
48
- .expectedMedDelay (Duration .ofMillis (500 ))
47
+ .expectedMaxDelay (Duration .ofMillis ( 100 ))
48
+ .expectedMedDelay (Duration .ofMillis (50 ))
49
49
.expectedMinDelay (Duration .ofMillis (1 )),
50
50
new TestCase ().backoffStrategy (BackoffStrategy .defaultStrategy (RetryMode .STANDARD ))
51
51
.retriesAttempted (1 )
52
- .expectedMaxDelay (Duration .ofSeconds ( 2 ))
53
- .expectedMedDelay (Duration .ofSeconds ( 1 ))
52
+ .expectedMaxDelay (Duration .ofMillis ( 200 ))
53
+ .expectedMedDelay (Duration .ofMillis ( 100 ))
54
54
.expectedMinDelay (Duration .ofMillis (1 )),
55
55
new TestCase ().backoffStrategy (BackoffStrategy .defaultStrategy (RetryMode .STANDARD ))
56
56
.retriesAttempted (2 )
57
- .expectedMaxDelay (Duration .ofSeconds ( 4 ))
58
- .expectedMedDelay (Duration .ofSeconds ( 2 ))
57
+ .expectedMaxDelay (Duration .ofMillis ( 400 ))
58
+ .expectedMedDelay (Duration .ofMillis ( 200 ))
59
59
.expectedMinDelay (Duration .ofMillis (1 )),
60
60
new TestCase ().backoffStrategy (BackoffStrategy .defaultStrategy (RetryMode .STANDARD ))
61
61
.retriesAttempted (3 )
62
- .expectedMaxDelay (Duration .ofSeconds ( 8 ))
63
- .expectedMedDelay (Duration .ofSeconds ( 4 ))
62
+ .expectedMaxDelay (Duration .ofMillis ( 800 ))
63
+ .expectedMedDelay (Duration .ofMillis ( 400 ))
64
64
.expectedMinDelay (Duration .ofMillis (1 )),
65
65
new TestCase ().backoffStrategy (BackoffStrategy .defaultStrategy (RetryMode .STANDARD ))
66
66
.retriesAttempted (4 )
67
- .expectedMaxDelay (Duration .ofSeconds ( 16 ))
68
- .expectedMedDelay (Duration .ofSeconds ( 8 ))
67
+ .expectedMaxDelay (Duration .ofMillis ( 1600 ))
68
+ .expectedMedDelay (Duration .ofMillis ( 800 ))
69
69
.expectedMinDelay (Duration .ofMillis (1 )),
70
70
new TestCase ().backoffStrategy (BackoffStrategy .defaultStrategy (RetryMode .STANDARD ))
71
71
.retriesAttempted (5 )
72
+ .expectedMaxDelay (Duration .ofMillis (3200 ))
73
+ .expectedMedDelay (Duration .ofMillis (1600 ))
74
+ .expectedMinDelay (Duration .ofMillis (1 )),
75
+ new TestCase ().backoffStrategy (BackoffStrategy .defaultStrategy (RetryMode .STANDARD ))
76
+ .retriesAttempted (100 )
72
77
.expectedMaxDelay (Duration .ofSeconds (20 ))
73
78
.expectedMedDelay (Duration .ofSeconds (10 ))
74
79
.expectedMinDelay (Duration .ofMillis (1 ))
0 commit comments