Commit 0fdb7436 authored by Victor Colombo's avatar Victor Colombo Committed by GitHub

refactor: Explicitly pass timeout to wait calls (#78)

parent b64f2e48
...@@ -4,4 +4,4 @@ def wait_for_healthy(plan, service_name, port_id): ...@@ -4,4 +4,4 @@ def wait_for_healthy(plan, service_name, port_id):
endpoint = "/eth/v1/node/health", endpoint = "/eth/v1/node/health",
port_id = port_id port_id = port_id
) )
return plan.wait(recipe, "code", "IN", [200, 206, 503]) return plan.wait(recipe, "code", "IN", [200, 206, 503], timeout = "15m")
...@@ -11,7 +11,7 @@ def get_enode_enr_for_node(plan, service_name, port_id): ...@@ -11,7 +11,7 @@ def get_enode_enr_for_node(plan, service_name, port_id):
"enr": ".result.enr", "enr": ".result.enr",
} }
) )
response = plan.wait(recipe, "extract.enode", "!=", "") response = plan.wait(recipe, "extract.enode", "!=", "", timeout = "15m")
return (response["extract.enode"], response["extract.enr"]) return (response["extract.enode"], response["extract.enr"])
def get_enode_for_node(plan, service_name, port_id): def get_enode_for_node(plan, service_name, port_id):
...@@ -25,5 +25,5 @@ def get_enode_for_node(plan, service_name, port_id): ...@@ -25,5 +25,5 @@ def get_enode_for_node(plan, service_name, port_id):
"enode": ".result.enode", "enode": ".result.enode",
} }
) )
response = plan.wait(recipe, "extract.enode", "!=", "") response = plan.wait(recipe, "extract.enode", "!=", "", timeout = "15m")
return response["extract.enode"] return response["extract.enode"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment