From be9cf82c4bab50db9e43910a0f91c9594d04ddd6 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Tue, 15 Apr 2025 18:51:41 +0700 Subject: [PATCH] test: fix intermittent failure in feature_governance.py waiting votes to be propagated --- test/functional/feature_governance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/feature_governance.py b/test/functional/feature_governance.py index 3de951ba29ed..b98990f4f015 100755 --- a/test/functional/feature_governance.py +++ b/test/functional/feature_governance.py @@ -279,6 +279,8 @@ def sync_gov(node): self.log.info("Should see NO votes on both triggers now") self.wait_until(lambda: self.nodes[0].gobject("list", "valid", "triggers")[winning_trigger_hash]['NoCount'] == 1, timeout=5) self.wait_until(lambda: self.nodes[0].gobject("list", "valid", "triggers")[isolated_trigger_hash]['NoCount'] == self.mn_count - 1, timeout=5) + self.log.info("Should wait until all 24 votes are counted for success on next stages") + self.wait_until(lambda: self.nodes[1].gobject("count")["votes"] == 24, timeout=5) self.log.info("Remember vote count") before = self.nodes[1].gobject("count")["votes"]