Skip to content

Commit 8506061

Browse files
committed
fix: intermittent error in feature_governance.py due to exceed amount of votes
1 parent 09aa42e commit 8506061

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/functional/feature_governance.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,11 @@ def sync_gov(node):
280280
self.wait_until(lambda: self.nodes[0].gobject("list", "valid", "triggers")[winning_trigger_hash]['NoCount'] == 1, timeout=5)
281281
self.wait_until(lambda: self.nodes[0].gobject("list", "valid", "triggers")[isolated_trigger_hash]['NoCount'] == self.mn_count - 1, timeout=5)
282282
self.log.info("Should wait until all 24 votes are counted for success on next stages")
283-
self.wait_until(lambda: self.nodes[1].gobject("count")["votes"] == 24, timeout=5)
284-
283+
# TODO: figure out where 25th vote come from
284+
# it is supposed to be only 24 of them, but in rare case there's 25 votes
285+
# and it's add instability to this functional tests
286+
self.wait_until(lambda: self.nodes[1].gobject("count")["votes"] >= 24, timeout=5)
287+
assert_greater_than(25, self.nodes[1].gobject("count")["votes"])
285288
self.log.info("Remember vote count")
286289
before = self.nodes[1].gobject("count")["votes"]
287290

0 commit comments

Comments
 (0)