Skip to content

Commit

Permalink
Wait less time between retries
Browse files Browse the repository at this point in the history
Co-authored-by: Hector Hurtado <[email protected]>
  • Loading branch information
nilp0inter and Hector Hurtado committed Oct 22, 2019
1 parent d465d10 commit be6a2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/test/features/steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit be6a2ef

Please sign in to comment.