Truly wait for pow in test_send_broadcast() in test_api

This commit is contained in:
Lee Miller 2023-12-31 17:13:58 +02:00
parent c45f1eae14
commit 2d87b2bfaf
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -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)