You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/core/KotlinDependency.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ private fun getDefaultRuntimeVersion(): String {
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/waiters/WaiterGenerator.kt
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/waiters/ServiceWaitersGeneratorTest.kt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ class ServiceWaitersGeneratorTest {
43
43
/**
44
44
* Wait until a foo exists with optional input
45
45
*/
46
-
public suspend fun TestClient.waitUntilFooOptionalExists(request: DescribeFooOptionalRequest = DescribeFooOptionalRequest { }): Outcome<DescribeFooOptionalResponse> {
46
+
public suspend fun TestClient.waitUntilFooOptionalExists(request: DescribeFooOptionalRequest = DescribeFooOptionalRequest { }, retryStrategy: RetryStrategy? = null): Outcome<DescribeFooOptionalResponse> {
47
47
""".trimIndent()
48
48
val methodFooter ="""
49
49
val policy = AcceptorRetryPolicy(request, acceptors)
@@ -59,7 +59,7 @@ class ServiceWaitersGeneratorTest {
59
59
/**
60
60
* Wait until a foo exists with required input
61
61
*/
62
-
public suspend fun TestClient.waitUntilFooRequiredExists(request: DescribeFooRequiredRequest): Outcome<DescribeFooRequiredResponse> {
62
+
public suspend fun TestClient.waitUntilFooRequiredExists(request: DescribeFooRequiredRequest, retryStrategy: RetryStrategy? = null): Outcome<DescribeFooRequiredResponse> {
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/waiters/WaiterGeneratorTest.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ class WaiterGeneratorTest {
28
28
@Test
29
29
funtestDefaultDelays() {
30
30
val expected ="""
31
-
val strategy = StandardRetryStrategy {
31
+
val strategy = retryStrategy ?: StandardRetryStrategy {
32
32
maxAttempts = 20
33
33
tokenBucket = InfiniteTokenBucket
34
34
delayProvider {
@@ -45,7 +45,7 @@ class WaiterGeneratorTest {
45
45
@Test
46
46
funtestCustomDelays() {
47
47
val expected ="""
48
-
val strategy = StandardRetryStrategy {
48
+
val strategy = retryStrategy ?: StandardRetryStrategy {
Copy file name to clipboardExpand all lines: runtime/auth/aws-signing-tests/jvm/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/SigningSuiteTestBaseJVM.kt
0 commit comments