From be6a2efcc49d9e33cd215f79c04531ceb89b6d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Tue, 22 Oct 2019 13:23:49 +0200 Subject: [PATCH] Wait less time between retries Co-authored-by: Hector Hurtado --- spec/test/features/steps/steps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/test/features/steps/steps.py b/spec/test/features/steps/steps.py index 02f0ad27..f8eb43c4 100644 --- a/spec/test/features/steps/steps.py +++ b/spec/test/features/steps/steps.py @@ -80,7 +80,7 @@ def run_kapow_server(context): and requests.head(Env.KAPOW_DATAAPI_URL, timeout=1).status_code) if open_ports: break - sleep(1) + sleep(.01) assert open_ports, "API is unreachable after KAPOW_BOOT_TIMEOUT" @@ -167,7 +167,7 @@ def step_impl(context, code): @then('I get {code} as response code in the testing request') def step_impl(context, code): - assert context.testing_response.status_code == int(code), f"Got {context.response.status_code} instead" + assert context.testing_response.status_code == int(code), f"Got {context.testing_response.status_code} instead" @then('I get "{reason}" as response reason phrase')