Page MenuHomePhabricator

[avalanche] Fix potential abc_rpc_getavalancheinfo test failure on slow machines
ClosedPublic

Authored by Fabien on Mar 12 2022, 08:07.

Details

Summary

The proof validation is done at each block and the test assumes that the validation occurs immediately after the node mined a block, but this assumption might be wrong on slow machines and the test has been seen failing when run with qemu. We can just wait for the output to turn right instead of asserting it immediately.

Test Plan

On a slow machine:

./test/functional/test_runner.py abc_rpc_getavalancheinfo

Diff Detail

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