Browse Source

[tests] fixups from set_test_params()

Github-Pull: #11215
Rebased-From: 3918d93f3c
0.15
John Newbery 7 years ago committed by MarcoFalke
parent
commit
cef03198dc
  1. 3
      test/functional/bitcoin_cli.py
  2. 2
      test/functional/example_test.py

3
test/functional/bitcoin_cli.py

@ -8,8 +8,7 @@ from test_framework.util import assert_equal
class TestBitcoinCli(BitcoinTestFramework): class TestBitcoinCli(BitcoinTestFramework):
def __init__(self): def set_test_params(self):
super().__init__()
self.setup_clean_chain = True self.setup_clean_chain = True
self.num_nodes = 1 self.num_nodes = 1

2
test/functional/example_test.py

@ -85,7 +85,7 @@ class ExampleTest(BitcoinTestFramework):
# Use self.extra_args to change command-line arguments for the nodes # Use self.extra_args to change command-line arguments for the nodes
self.extra_args = [[], ["-logips"], []] self.extra_args = [[], ["-logips"], []]
# self.log.info("I've finished __init__") # Oops! Can't run self.log before run_test() # self.log.info("I've finished set_test_params") # Oops! Can't run self.log before run_test()
# Use add_options() to add specific command-line options for your test. # Use add_options() to add specific command-line options for your test.
# In practice this is not used very much, since the tests are mostly written # In practice this is not used very much, since the tests are mostly written

Loading…
Cancel
Save