Page MenuHomePhabricator

[avalanche] Improve test coverage of existing parking behavior
ClosedPublic

Authored by sdulfari on Dec 29 2022, 21:35.

Details

Summary

Generalize the test coverage of parking blocks near the chaintip so that we
check different chain lengths.

Depends on D12943

Test Plan
ninja
./test/functional/test_runner.py abc_p2p_avalanche_voting

Diff Detail

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

Event Timeline

Fabien requested changes to this revision.Dec 30 2022, 10:13
Fabien added a subscriber: Fabien.
Fabien added inline comments.
test/functional/abc_p2p_avalanche_voting.py
256 ↗(On Diff #37440)
280 ↗(On Diff #37440)

The flow is confusing. I suggest you extract the 1 block case then loop over the remaining with no special case so it's easy to understand what's going on

This revision now requires changes to proceed.Dec 30 2022, 10:13

Pull 1 block case out of the loop and other fixes from feedback

This revision is now accepted and ready to land.Jan 1 2023, 14:46