Skip to content

GH-427: Add fix for the issue with multiplierExpression and randomExp… #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 10, 2024
Prev Previous commit
Next Next commit
GH-427: Refactor tests
  • Loading branch information
aftabshk committed May 10, 2024
commit 3671ae14c9b23cb34a80e730ea8518cf92efbdd3
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ public void shouldCreateExponentialRandomBackOffWhenProvidedRandomSupplier() {
assertThat(policy.getInitialInterval()).isEqualTo(10000);
assertThat(policy.getMaxInterval()).isEqualTo(100000);
assertThat(policy.getMultiplier()).isEqualTo(10);
assertThat(new DirectFieldAccessor(policy).getPropertyValue("sleeper")).isEqualTo(mockSleeper);
}

@Test
Expand All @@ -145,7 +144,6 @@ public void shouldCreateExponentialRandomBackOffWithProvidedSuppliers() {
assertThat(policy.getInitialInterval()).isEqualTo(10000);
assertThat(policy.getMaxInterval()).isEqualTo(100000);
assertThat(policy.getMultiplier()).isEqualTo(10);
assertThat(new DirectFieldAccessor(policy).getPropertyValue("sleeper")).isEqualTo(mockSleeper);
}

@Test
Expand All @@ -163,7 +161,6 @@ public void shouldCreateExponentialBackOffWhenProvidedRandomSupplier() {
assertThat(policy.getInitialInterval()).isEqualTo(100);
assertThat(policy.getMaxInterval()).isEqualTo(1000);
assertThat(policy.getMultiplier()).isEqualTo(2);
assertThat(new DirectFieldAccessor(policy).getPropertyValue("sleeper")).isEqualTo(mockSleeper);
}

}