Skip to content

Commit

Permalink
Fix a test that expects adaptive to map to RetryMode.ADAPTIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
sugmanue committed Jun 4, 2024
1 parent 48e61cc commit fb34e35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public static Collection<Object> data() {
// Test resolution
new TestData("legacy", null, null, null, RetryMode.LEGACY),
new TestData("standard", null, null, null, RetryMode.STANDARD),
new TestData("adaptive", null, null, null, RetryMode.ADAPTIVE),
new TestData("adaptive", null, null, null, RetryMode.ADAPTIVE_V2),
new TestData("lEgAcY", null, null, null, RetryMode.LEGACY),
new TestData("sTanDaRd", null, null, null, RetryMode.STANDARD),
new TestData("aDaPtIvE", null, null, null, RetryMode.ADAPTIVE),
new TestData("aDaPtIvE", null, null, null, RetryMode.ADAPTIVE_V2),

// Test precedence
new TestData("standard", "legacy", "PropertySetToLegacy", RetryMode.LEGACY, RetryMode.STANDARD),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void resolve_retryModeSetWithSupplier_resolvesFromSupplier() {
RetryStrategy retryStrategy = DynamoDbRetryPolicy.resolveRetryStrategy(sdkClientConfiguration);
RetryMode retryMode = SdkDefaultRetryStrategy.retryMode(retryStrategy);

assertThat(retryMode).isEqualTo(RetryMode.ADAPTIVE);
assertThat(retryMode).isEqualTo(RetryMode.ADAPTIVE_V2);
}

@Test
Expand Down

0 comments on commit fb34e35

Please sign in to comment.