Truly wait for pow in test_send_broadcast() in test_api
This commit is contained in:
parent
c45f1eae14
commit
2d87b2bfaf
|
@ -369,7 +369,7 @@ class TestAPI(TestAPIProto):
|
|||
'doingbroadcastpow', 'broadcastqueued', 'broadcastsent'))
|
||||
|
||||
start = time.time()
|
||||
while status == 'doingbroadcastpow':
|
||||
while status != 'broadcastsent':
|
||||
spent = int(time.time() - start)
|
||||
if spent > 30:
|
||||
self.fail('PoW is taking too much time: %ss' % spent)
|
||||
|
|
Reference in New Issue
Block a user