diff options
| author | MarcoFalke <[email protected]> | 2018-09-13 17:47:25 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-09-13 17:47:27 -0400 |
| commit | a098245ec9392fcaa31540ad67d520eae1ca086c (patch) | |
| tree | 26cc08dd21f4757b5b521a2d6163515b281dc2a1 /test/functional/example_test.py | |
| parent | Merge #14179: qa: Fixups to "Run all tests even if wallet is not compiled" (diff) | |
| parent | [qa] Use correct python index slices in example test (diff) | |
| download | discoin-a098245ec9392fcaa31540ad67d520eae1ca086c.tar.xz discoin-a098245ec9392fcaa31540ad67d520eae1ca086c.zip | |
Merge #14215: [qa] Use correct python index slices in example test
9dcb6763fb [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
Diffstat (limited to 'test/functional/example_test.py')
| -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 4c9d60b33..937a52540 100755 --- a/test/functional/example_test.py +++ b/test/functional/example_test.py @@ -115,7 +115,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). @@ -139,7 +139,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 |