Skip to content

Commit

Permalink
Fix test regression during fix for #149
Browse files Browse the repository at this point in the history
  • Loading branch information
gberche-orange committed Jul 1, 2019
1 parent 9582c56 commit beb36e7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public void builds_default_retry_policy() {
assertThat(retryPolicy.getMaxAttempts()).isEqualTo(4);
assertThat(retryPolicy.getDelay()).isEqualTo(Duration.ofMillis(5000));
assertThat(retryPolicy.getDelayFactor()).isEqualTo(2d);
assertThat(retryPolicy.getMaxDuration()).isEqualTo(Duration.ofSeconds(60));
assertThat(retryPolicy.getMaxDuration()).isEqualTo(Duration.ofSeconds(60));
assertThat(retryPolicy.getMaxDuration()).isEqualTo(Duration.ofSeconds(50));
}
@Test
public void builds_simple_delay_retry_policy() {
Expand All @@ -55,7 +54,7 @@ public void builds_simple_delay_retry_policy() {
RetryPolicy<Object> retryPolicy = properties.toRetryPolicy();
assertThat(retryPolicy.getMaxAttempts()).isEqualTo(10);
assertThat(retryPolicy.getDelay()).isEqualTo(Duration.ofMillis(5000));
assertThat(retryPolicy.getMaxDuration()).isEqualTo(Duration.ofMillis(60000));
assertThat(retryPolicy.getMaxDuration()).isEqualTo(Duration.ofMillis(50000));
assertThat(retryPolicy.getDelayFactor()).isEqualTo(0d);
}

Expand Down

0 comments on commit beb36e7

Please sign in to comment.