diff --git a/tests/integration/local/invoke/test_integrations_cli.py b/tests/integration/local/invoke/test_integrations_cli.py index 70711459d6..757a97362b 100644 --- a/tests/integration/local/invoke/test_integrations_cli.py +++ b/tests/integration/local/invoke/test_integrations_cli.py @@ -160,7 +160,9 @@ def test_invoke_with_timeout_set(self, function_name): # validate the time of the cli (timeout is set to 5s) self.assertGreater(wall_clock_cli_duration, 5) - self.assertLess(wall_clock_cli_duration, 20) + # validate the the duration is roughly under the timeout (with some additional + # time to take in account time for SAM CLI to do work) + self.assertLess(wall_clock_cli_duration, 25) self.assertEqual(process.returncode, 0) self.assertEqual(