Skip to content

Commit a098245

Browse files
author
MarcoFalke
committed
Merge #14215: [qa] Use correct python index slices in example test
9dcb676 [qa] Use correct python index slices in example test (Suhas Daftuar) Pull request description: There's an off-by-one in the list indices used in example_test.py. Tree-SHA512: d75b77c1e0b3931d02dfa043da4cb6fe8e62864a73717ce5c184d9dbeb25579342c6365cc7bbcc7c4382d76a320a528bf3c69107854dfc6fa704133d0ba11012
2 parents efb11d7 + 9dcb676 commit a098245

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
@@ -115,7 +115,7 @@ def setup_network(self):
115115
# sync_all() should not include node2, since we're not expecting it to
116116
# sync.
117117
connect_nodes(self.nodes[0], 1)
118-
self.sync_all([self.nodes[0:1]])
118+
self.sync_all([self.nodes[0:2]])
119119

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

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

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

0 commit comments

Comments
 (0)