Skip to content

Commit 677529c

Browse files
Merge #6646: test: fix intermittent failure in feature_governance.py waiting votes to be propagated
be9cf82 test: fix intermittent failure in feature_governance.py waiting votes to be propagated (Konstantin Akimov) Pull request description: ## Issue being fixed or feature implemented While implementing #6631 found instability in feature_governance.py ## What was done? Governance votes are not delivered instantly between notes. If any vote is delayed a bit the wrong amount of votes will be remembered and test will fail further when comparing its count. ## How Has This Been Tested? Tested locally with changes from #6631 without them - 90+% probability feature_governance.py to fail, with them - no failure happens locally. ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone ACKs for top commit: UdjinM6: utACK be9cf82 Tree-SHA512: 113f22314c1a269bfe804e8ad3f1aa02dd31155af08f073345bce52d93d23746cee543814f5b44791698e40eca843a747660fddf2a4eafb235c3b3044fe06ba6
2 parents cff9ef0 + be9cf82 commit 677529c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/feature_governance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ def sync_gov(node):
279279
self.log.info("Should see NO votes on both triggers now")
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)
282+
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)
282284

283285
self.log.info("Remember vote count")
284286
before = self.nodes[1].gobject("count")["votes"]

0 commit comments

Comments
 (0)