Skip to content

Commit 9dcb676

Browse files
committed
[qa] Use correct python index slices in example test
1 parent 8f46454 commit 9dcb676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/example_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def setup_network(self):
111111
# sync_all() should not include node2, since we're not expecting it to
112112
# sync.
113113
connect_nodes(self.nodes[0], 1)
114-
self.sync_all([self.nodes[0:1]])
114+
self.sync_all([self.nodes[0:2]])
115115

116116
# Use setup_nodes() to customize the node start behaviour (for example if
117117
# you don't want to start all nodes at the start of the test).
@@ -135,7 +135,7 @@ def run_test(self):
135135

136136
# Generating a block on one of the nodes will get us out of IBD
137137
blocks = [int(self.nodes[0].generate(nblocks=1)[0], 16)]
138-
self.sync_all([self.nodes[0:1]])
138+
self.sync_all([self.nodes[0:2]])
139139

140140
# Notice above how we called an RPC by calling a method with the same
141141
# name on the node object. Notice also how we used a keyword argument

0 commit comments

Comments
 (0)