Fix failures of test_send_broadcast() in test_api #2181

Merged
PeterSurda merged 1 commits from gitea-66 into v0.6 2024-02-26 16:50:01 +01:00

View File

@ -369,7 +369,7 @@ class TestAPI(TestAPIProto):
'doingbroadcastpow', 'broadcastqueued', 'broadcastsent')) 'doingbroadcastpow', 'broadcastqueued', 'broadcastsent'))
start = time.time() start = time.time()
while status == 'doingbroadcastpow': while status != 'broadcastsent':
spent = int(time.time() - start) spent = int(time.time() - start)
if spent > 30: if spent > 30:
self.fail('PoW is taking too much time: %ss' % spent) self.fail('PoW is taking too much time: %ss' % spent)