[qa] Fix race condition in p2p-compactblocks test

Also fix a bug in the sync_with_ping() helper function

Github-Pull: #8854
Rebased-From: b5fd666984fdb7125cb809c773b36034f32128cc
This commit is contained in:
Suhas Daftuar
2016-09-30 20:54:30 -04:00
committed by lateminer
parent 79a8a8b012
commit 90f833fe60
2 changed files with 3 additions and 1 deletions

View File

@@ -1149,7 +1149,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