We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f299135 commit 996fe42Copy full SHA for 996fe42
1 file changed
Libraries/test/IntegrationTests.Helpers/LambdaHelper.cs
@@ -72,14 +72,21 @@ public async Task WaitTillNotPending(List<string> functions)
72
{
73
while (true)
74
75
- var response = await _lambdaClient.GetFunctionConfigurationAsync(new GetFunctionConfigurationRequest { FunctionName = function });
76
- if (response.State == State.Pending)
+ try
77
78
- await Task.Delay(1000);
+ var response = await _lambdaClient.GetFunctionConfigurationAsync(new GetFunctionConfigurationRequest { FunctionName = function });
+ if (response.State == State.Pending)
79
+ {
80
+ await Task.Delay(1000);
81
+ }
82
+ else
83
84
+ break;
85
86
}
- else
87
+ catch(TooManyRequestsException)
88
- break;
89
+ await Task.Delay(10000);
90
91
92
0 commit comments