Page MenuHomePhabricator

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

Authored by Fabien on Wed, Apr 30, 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
Branch
fix_contenders_3
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33191
Build 65865: Build Diffbuild-without-wallet · build-diff · build-debug · build-clang-tidy · build-clang
Build 65864: arc lint + arc unit

Event Timeline

Rebase, vote UNKNOWN for non contenders in vote_all_contenders

Fabien published this revision for review.Thu, May 1, 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.Thu, May 1, 16:03