Fix argument to wait_until

This commit is contained in:
Alexander Block 2018-02-08 08:43:25 +01:00
parent 026f2e2a8c
commit b2bc780994

View File

@ -1145,7 +1145,7 @@ class SingleNodeConnCB(NodeConnCB):
def received_pong():
return (self.last_pong.nonce == self.ping_counter)
self.send_message(msg_ping(nonce=self.ping_counter))
success = wait_until(received_pong, timeout)
success = wait_until(received_pong, timeout=timeout)
self.ping_counter += 1
return success