HomePhabricator

[qa] Fix race condition in example_test.py

Description

[qa] Fix race condition in example_test.py

Summary:
PR description:

There's a race between sending a getdata for a bunch of blocks with the node receiving those blocks from a peer, which could cause test failure. Fix this.

Motivated by observing this race caused an appveyor test failure on another PR

Backport of Core PR16459

Test Plan: ninja && test/functional/test_runner.py example_test

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

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

Details

Provenance
Suhas Daftuar <sdaftuar@gmail.com>Authored on Jul 25 2019, 14:32
PiRKCommitted on Oct 12 2020, 11:44
PiRKPushed on Oct 12 2020, 11:44
Reviewer
Restricted Owners Package
Differential Revision
D7886: [qa] Fix race condition in example_test.py
Parents
rABC2c3dccae4665: Fix autostart filenames on Linux
Branches
Unknown
Tags
Unknown