Page MenuHomePhabricator

[test] Assert the exact list of contenders to be polled in abc_p2p_avalanche_contender_voting
ClosedPublic

Authored by Fabien on Apr 30 2025, 16:47.

Details

Summary

This is more accurate than checking for the number of polls. This also makes the test capable of handling slowly connecting peers, which could cause a contender poll to finalize before the other contenders are registered (so the poll count will be lower than the expected 12). By checking the set over the whole quorum we remove this constraint entirely.

Depends on D18040.

Test Plan
./test/functional/test_runner.py abc_p2p_avalanche_contender_voting

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Rebase, vote UNKNOWN for non contenders in vote_all_contenders

Fabien published this revision for review.May 1 2025, 12:14
Fabien retitled this revision from Assert the exact list of contenders to be polled in tests to [test] Assert the exact list of contenders to be polled in abc_p2p_avalanche_contender_voting.
Fabien edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.May 1 2025, 16:03