Skip to content

Commit

Permalink
[qa] Use correct python index slices in example test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaftuar committed Sep 13, 2018
1 parent 8f46454 commit 9dcb676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/example_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def setup_network(self):
# 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).
Expand All @@ -135,7 +135,7 @@ def run_test(self):

# 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
Expand Down

0 comments on commit 9dcb676

Please sign in to comment.