diff options
| author | Suhas Daftuar <[email protected]> | 2019-07-25 10:32:07 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2019-07-25 10:32:07 -0400 |
| commit | d9ab0ffa386f2dd8d05852563d5011b3cb501df8 (patch) | |
| tree | a3ce53b7617ad8acfa3f8d8e521872f366c3aed5 /test/functional/example_test.py | |
| parent | Merge #16455: doc: Remove downgrading warning in release notes, per 0.18 branch (diff) | |
| download | discoin-d9ab0ffa386f2dd8d05852563d5011b3cb501df8.tar.xz discoin-d9ab0ffa386f2dd8d05852563d5011b3cb501df8.zip | |
[qa] Fix race condition in example_test.py
Diffstat (limited to 'test/functional/example_test.py')
| -rwxr-xr-x | test/functional/example_test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/example_test.py b/test/functional/example_test.py index a2726763d..70dfe81d4 100755 --- a/test/functional/example_test.py +++ b/test/functional/example_test.py @@ -186,12 +186,15 @@ class ExampleTest(BitcoinTestFramework): self.log.info("Connect node2 and node1") connect_nodes(self.nodes[1], 2) + self.log.info("Wait for node2 to receive all the blocks from node1") + self.sync_all() + self.log.info("Add P2P connection to node2") self.nodes[0].disconnect_p2ps() self.nodes[2].add_p2p_connection(BaseNode()) - self.log.info("Wait for node2 reach current tip. Test that it has propagated all the blocks to us") + self.log.info("Test that node2 propagates all the blocks to us") getdata_request = msg_getdata() for block in blocks: |