test: create default wallet in extended tests #19971
pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2020/09/fix_no_default_wallet_extended_tests changing 2 files +7 −7-
Sjors commented at 10:41 am on September 18, 2020: memberThis was omitted from #15454
-
fanquake added the label Tests on Sep 18, 2020
-
Sjors force-pushed on Sep 18, 2020
-
jnewbery commented at 1:18 pm on September 18, 2020: member
utACK 165b8fd561
Thanks for the quick fix!
-
in test/functional/feature_dbcrash.py:79 in 165b8fd561 outdated
74@@ -75,7 +75,8 @@ def skip_test_if_missing_module(self): 75 def setup_network(self): 76 self.add_nodes(self.num_nodes, extra_args=self.extra_args) 77 self.start_nodes() 78- self.import_deterministic_coinbase_privkeys() 79+ for n in self.nodes: 80+ self.import_deterministic_coinbase_privkeys()
ryanofsky commented at 2:49 pm on September 18, 2020:In commit “test: create default wallet in extended tests” (165b8fd5617e4bd4d5f99586306a66f084d95d13)
Could you add a comment here? It’s unclear why you’d want to call the same function n times.
Sjors commented at 3:53 pm on September 18, 2020:That’s a leftover bug from my refactor.ryanofsky approvedryanofsky commented at 2:50 pm on September 18, 2020: memberCode review ACK 165b8fd5617e4bd4d5f99586306a66f084d95d13ryanofsky commented at 3:03 pm on September 18, 2020: memberPrevious version 9df44e0b97ba74b4df01e600b4c19e9d75310498 also looked good, but John’s suggestion to use -wallet="" is good because it provides more consistency with other tests so they be cleaned up easier later. There are a few ways tests could conceivably create default wallets:
- Not pass any -wallet arguments or call createwallet RPC, just rely on bitcoind default wallet creation (only possible before #15454)
- Pass ["-wallet="] argument and rely on test framework to strip out the argument and turn it into a createwallet RPC call behind the scenes
- Just call createwallet RPC directly from the test
- Give test framework a
wants_default_wallet
or similar test setup option, so tests have a more direct way of saying whether they want a default wallet or not and we can get rid of the “-wallet=” interception stuff.
#15454 moved us from (1) to (2). Originally this PR used approach (3) for extended tests, now it uses (2). Probably we want to end up doing (4)
test: create default wallet in extended tests
This was omitted from #15454
Sjors force-pushed on Sep 18, 2020Sjors commented at 3:55 pm on September 18, 2020: memberThird time’s a charm.ryanofsky approvedryanofsky commented at 3:59 pm on September 18, 2020: memberCode review ACK a5f5374b43275ce4529c3a44c4b44e478d35e079. Just reverted a leftover diff since last reviewglozow commented at 11:16 pm on September 18, 2020: memberfanquake merged this on Sep 19, 2020fanquake closed this on Sep 19, 2020
Sjors deleted the branch on Sep 19, 2020Fabcien referenced this in commit 407828747f on Oct 7, 2021DrahtBot locked this on Feb 15, 2022
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 12:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 12:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me