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
Branch
ava-finalize-test-chains
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21681
Build 43002: Build Diffbuild-diff · build-without-wallet · build-clang · build-debug · build-clang-tidy
Build 43001: arc lint + arc unit

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
280

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