Commit a26607a8 authored by Štěpán Balážik's avatar Štěpán Balážik Committed by Petr Špaček

scenario: set default timeout to 5 s

parent 3a6824dd
...@@ -754,6 +754,8 @@ class Step: ...@@ -754,6 +754,8 @@ class Step:
answer = None answer = None
if not self.data[0].is_raw_data_entry: if not self.data[0].is_raw_data_entry:
while True: while True:
if (datetime.now() - tstart).total_seconds() > 5:
raise RuntimeError("Server took too long to respond")
try: try:
answer, _ = recvfrom_msg(sock, True) answer, _ = recvfrom_msg(sock, True)
break break
......
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