Page MenuHomePhabricator

test: Avoid intermittent block download timeout in p2p_ibd_stalling
ClosedPublic

Authored by Fabien on Fri, Dec 20, 22:16.

Details

Summary
The goal of the test is to check the stalling timeout, not the block download timeout.

On extremely slow hardware (for example qemu virtual hardware), downloading the 1023 blocks may take longer than the block download timeout.

Fix it by pinning the time using mocktime, and only advance it when testing the stalling timeout.

Backport of core#30705.

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

Diff Detail

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