Truly wait for pow in test_send_broadcast() in test_api
This commit is contained in:
parent
696f9f9aeb
commit
348df1151f
|
@ -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