HomePhabricator

[avalanche] Fix potential abc_rpc_getavalancheinfo test failure on slow machines

Description

[avalanche] Fix potential abc_rpc_getavalancheinfo test failure on slow machines

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

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D11163

Details

Provenance
FabienAuthored on Mar 12 2022, 08:06
FabienPushed on Mar 14 2022, 07:58
Reviewer
Restricted Project
Differential Revision
D11163: [avalanche] Fix potential abc_rpc_getavalancheinfo test failure on slow machines
Parents
rABCef48cb3edde6: rpc: Add hash_type MUHASH to gettxoutsetinfo and add a test
Branches
Unknown
Tags
Unknown