diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2018-09-13 16:59:31 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-10-24 22:01:40 -0400 |
commit | b72fbabe17a8639ffab2ef02ff84d0ee66c30fae (patch) | |
tree | 6b50d1bd8ac5071364343d80fbe3236e056dffd1 | |
parent | 06544faff0164051d2654d6aabb86f555fd2e86b (diff) |
[qa] Use correct python index slices in example test
Github-Pull: #14215
Rebased-From: 9dcb6763fb6851df6572e75278a41029fbfe8809
-rwxr-xr-x | test/functional/example_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/example_test.py b/test/functional/example_test.py index 714d977380..3bdb3b4f1c 100755 --- a/test/functional/example_test.py +++ b/test/functional/example_test.py @@ -111,7 +111,7 @@ class ExampleTest(BitcoinTestFramework): # sync_all() should not include node2, since we're not expecting it to # sync. connect_nodes(self.nodes[0], 1) - self.sync_all([self.nodes[0:1]]) + self.sync_all([self.nodes[0:2]]) # Use setup_nodes() to customize the node start behaviour (for example if # you don't want to start all nodes at the start of the test). @@ -135,7 +135,7 @@ class ExampleTest(BitcoinTestFramework): # Generating a block on one of the nodes will get us out of IBD blocks = [int(self.nodes[0].generate(nblocks=1)[0], 16)] - self.sync_all([self.nodes[0:1]]) + self.sync_all([self.nodes[0:2]]) # Notice above how we called an RPC by calling a method with the same # name on the node object. Notice also how we used a keyword argument |