From 348df1151ff361cd80916347ed356e72bcc88413 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Sun, 31 Dec 2023 17:13:58 +0200 Subject: [PATCH] Truly wait for pow in test_send_broadcast() in test_api --- src/tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test_api.py b/src/tests/test_api.py index d599e0a5..2a4640fa 100644 --- a/src/tests/test_api.py +++ b/src/tests/test_api.py @@ -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)