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.
[qa] Fix race condition in example_test.py #16459
pull sdaftuar wants to merge 1 commits into bitcoin:master from sdaftuar:2019-07-fix-example-test changing 1 files +4 −1-
sdaftuar commented at 3:30 PM on July 25, 2019: member
-
[qa] Fix race condition in example_test.py d9ab0ffa38
-
sdaftuar commented at 3:31 PM on July 25, 2019: member
Motivated by observing this race caused an appveyor test failure on another PR (https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/26218741).
- fanquake added the label Tests on Jul 25, 2019
-
MarcoFalke commented at 3:50 PM on July 25, 2019: member
ACK d9ab0ffa386f2dd8d05852563d5011b3cb501df8
- MarcoFalke added this to the milestone 0.19.0 on Jul 25, 2019
- laanwj approved
-
laanwj commented at 4:01 PM on July 25, 2019: member
ACK d9ab0ffa386f2dd8d05852563d5011b3cb501df8
-
in test/functional/example_test.py:190 in d9ab0ffa38
185 | @@ -186,12 +186,15 @@ def run_test(self): 186 | self.log.info("Connect node2 and node1") 187 | connect_nodes(self.nodes[1], 2) 188 | 189 | + self.log.info("Wait for node2 to receive all the blocks from node1") 190 | + self.sync_all()
promag commented at 4:45 PM on July 25, 2019:Could be
self.sync_blocks()as the comment implies?promag commented at 4:45 PM on July 25, 2019: memberACK d9ab0ffa386f2dd8d05852563d5011b3cb501df8.
MarcoFalke referenced this in commit fcc4025c12 on Jul 25, 2019MarcoFalke merged this on Jul 25, 2019MarcoFalke closed this on Jul 25, 2019jnewbery commented at 5:05 PM on July 25, 2019: memberCode review ACK d9ab0ffa386f2dd8d05852563d5011b3cb501df8.
Good catch!
codablock referenced this in commit 72ab7bb703 on Apr 7, 2020codablock referenced this in commit f7405bfb52 on Apr 8, 2020codablock referenced this in commit 62dc0bbdae on Apr 8, 2020jasonbcox referenced this in commit b8eaec1a70 on Oct 12, 2020ckti referenced this in commit 5f26783bd8 on Mar 28, 2021DrahtBot locked this on Dec 16, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 12:15 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 12:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me