Skip to content

Commit 0b676a7

Browse files
authored
test: Increase start-api tests timeouts (#7883)
The start-api tests take longer on Windows, so we increase the timeout so they don't fail.
1 parent 6bd3eb5 commit 0b676a7

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

tests/integration/local/start_api/lambda_authorizers/test_cfn_authorizer_definitions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class TestInvalidApiTemplateUsingUnsupportedType(WritableStartApiIntegBaseClass)
184184
"""
185185

186186
@pytest.mark.flaky(reruns=3)
187-
@pytest.mark.timeout(timeout=10, method="thread")
187+
@pytest.mark.timeout(timeout=100, method="thread")
188188
def test_invalid_template(self):
189189
self.assertIn(
190190
"Authorizer 'RequestAuthorizer' with type 'notvalid' is currently not supported. "
@@ -219,7 +219,7 @@ class TestInvalidHttpTemplateUsingIncorrectPayloadVersion(WritableStartApiIntegB
219219
"""
220220

221221
@pytest.mark.flaky(reruns=3)
222-
@pytest.mark.timeout(timeout=10, method="thread")
222+
@pytest.mark.timeout(timeout=100, method="thread")
223223
def test_invalid_template(self):
224224
self.assertIn(
225225
"Error: Lambda Authorizer 'RequestAuthorizerV2Simple' contains an "
@@ -254,7 +254,7 @@ class TestInvalidHttpTemplateSimpleResponseWithV1(WritableStartApiIntegBaseClass
254254
"""
255255

256256
@pytest.mark.flaky(reruns=3)
257-
@pytest.mark.timeout(timeout=10, method="thread")
257+
@pytest.mark.timeout(timeout=100, method="thread")
258258
def test_invalid_template(self):
259259
self.assertIn(
260260
"Error: 'EnableSimpleResponses' is only supported for '2.0' "
@@ -289,7 +289,7 @@ class TestInvalidHttpTemplateUnsupportedType(WritableStartApiIntegBaseClass):
289289
"""
290290

291291
@pytest.mark.flaky(reruns=3)
292-
@pytest.mark.timeout(timeout=10, method="thread")
292+
@pytest.mark.timeout(timeout=100, method="thread")
293293
def test_invalid_template(self):
294294
self.assertIn(
295295
"Authorizer 'RequestAuthorizerV2Simple' with type 'unsupportedtype' is currently "
@@ -323,7 +323,7 @@ class TestInvalidHttpTemplateInvalidIdentitySources(WritableStartApiIntegBaseCla
323323
"""
324324

325325
@pytest.mark.flaky(reruns=3)
326-
@pytest.mark.timeout(timeout=10, method="thread")
326+
@pytest.mark.timeout(timeout=100, method="thread")
327327
def test_invalid_template(self):
328328
self.assertIn(
329329
"Error: Lambda Authorizer RequestAuthorizerV2Simple does not contain valid identity sources.",

tests/integration/local/start_api/lambda_authorizers/test_sfn_props_lambda_authorizers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class TestUsingSimpleResponseWithV1HttpApi(WritableStartApiIntegBaseClass):
159159
"""
160160

161161
@pytest.mark.flaky(reruns=3)
162-
@pytest.mark.timeout(timeout=10, method="thread")
162+
@pytest.mark.timeout(timeout=100, method="thread")
163163
def test_invalid_template(self):
164164
self.assertIn(
165165
"EnableSimpleResponses must be used with the 2.0 payload "
@@ -210,7 +210,7 @@ class TestInvalidInvalidVersionHttpApi(WritableStartApiIntegBaseClass):
210210
"""
211211

212212
@pytest.mark.flaky(reruns=3)
213-
@pytest.mark.timeout(timeout=10, method="thread")
213+
@pytest.mark.timeout(timeout=100, method="thread")
214214
def test_invalid_template(self):
215215
self.assertIn(
216216
"Error: Lambda Authorizer 'RequestAuthorizerV2' must contain "
@@ -261,7 +261,7 @@ class TestUsingInvalidFunctionArnHttpApi(WritableStartApiIntegBaseClass):
261261
"""
262262

263263
@pytest.mark.flaky(reruns=3)
264-
@pytest.mark.timeout(timeout=10, method="thread")
264+
@pytest.mark.timeout(timeout=100, method="thread")
265265
def test_invalid_template(self):
266266
self.assertIn(
267267
"Unable to parse the Lambda ARN for Authorizer 'RequestAuthorizerV2', skipping",

tests/integration/local/start_api/lambda_authorizers/test_swagger_authorizer_definitions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class TestInvalidSwaggerTemplateUsingUnsupportedType(WritableStartApiIntegBaseCl
182182
"""
183183

184184
@pytest.mark.flaky(reruns=3)
185-
@pytest.mark.timeout(timeout=10, method="thread")
185+
@pytest.mark.timeout(timeout=100, method="thread")
186186
def test_invalid_template(self):
187187
self.assertIn(
188188
"Lambda authorizer 'Authorizer' type 'bad type' is unsupported, skipping",
@@ -223,7 +223,7 @@ class TestInvalidSwaggerTemplateUsingSimpleResponseWithPayloadV1(WritableStartAp
223223
"""
224224

225225
@pytest.mark.flaky(reruns=3)
226-
@pytest.mark.timeout(timeout=10, method="thread")
226+
@pytest.mark.timeout(timeout=100, method="thread")
227227
def test_invalid_template(self):
228228
self.assertIn(
229229
"Simple responses are only available on HTTP APIs with "
@@ -264,7 +264,7 @@ class TestInvalidSwaggerTemplateUsingUnsupportedPayloadVersion(WritableStartApiI
264264
"""
265265

266266
@pytest.mark.flaky(reruns=3)
267-
@pytest.mark.timeout(timeout=10, method="thread")
267+
@pytest.mark.timeout(timeout=100, method="thread")
268268
def test_invalid_template(self):
269269
self.assertIn(
270270
"Error: Authorizer 'Authorizer' contains an invalid payload version",
@@ -304,7 +304,7 @@ class TestInvalidSwaggerTemplateUsingInvalidIdentitySources(WritableStartApiInte
304304
"""
305305

306306
@pytest.mark.flaky(reruns=3)
307-
@pytest.mark.timeout(timeout=10, method="thread")
307+
@pytest.mark.timeout(timeout=100, method="thread")
308308
def test_invalid_template(self):
309309
self.assertIn(
310310
"Error: Identity source 'a.b.c.d.e' for Lambda Authorizer "
@@ -345,7 +345,7 @@ class TestInvalidSwaggerTemplateUsingTokenWithHttpApi(WritableStartApiIntegBaseC
345345
"""
346346

347347
@pytest.mark.flaky(reruns=3)
348-
@pytest.mark.timeout(timeout=10, method="thread")
348+
@pytest.mark.timeout(timeout=100, method="thread")
349349
def test_invalid_template(self):
350350
self.assertIn(
351351
"Type 'token' for Lambda Authorizer 'Authorizer' is unsupported",

0 commit comments

Comments
 (0)