Skip to content
Snippets Groups Projects
Commit 2e598327 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

tests: fixed wrong unit in socket timeout

parent d58d3431
No related branches found
No related tags found
No related merge requests found
......@@ -330,7 +330,6 @@ class Step:
# Wait for a response for a reasonable time
answer = None
if not self.data[0].is_raw_data_entry:
ctx.child_sock.settimeout(1)
answer, addr = ctx.child_sock.recvfrom(4096)
# Remember last answer for checking later
self.raw_answer = answer
......@@ -395,7 +394,7 @@ class Scenario:
def play(self, saddr, paddr):
""" Play given scenario. """
self.child_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.child_sock.settimeout(1000)
self.child_sock.settimeout(1)
self.child_sock.connect((paddr, 53))
step = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment