mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
Disable wallet_descriptor.py bdb format check if BDB is not compiled
This commit is contained in:
parent
3641597d7e
commit
1f20cac9d4
1 changed files with 8 additions and 5 deletions
|
@ -23,11 +23,14 @@ class WalletDescriptorTest(BitcoinTestFramework):
|
||||||
self.skip_if_no_sqlite()
|
self.skip_if_no_sqlite()
|
||||||
|
|
||||||
def run_test(self):
|
def run_test(self):
|
||||||
# Make a legacy wallet and check it is BDB
|
if self.is_bdb_compiled():
|
||||||
self.nodes[0].createwallet(wallet_name="legacy1", descriptors=False)
|
# Make a legacy wallet and check it is BDB
|
||||||
wallet_info = self.nodes[0].getwalletinfo()
|
self.nodes[0].createwallet(wallet_name="legacy1", descriptors=False)
|
||||||
assert_equal(wallet_info['format'], 'bdb')
|
wallet_info = self.nodes[0].getwalletinfo()
|
||||||
self.nodes[0].unloadwallet("legacy1")
|
assert_equal(wallet_info['format'], 'bdb')
|
||||||
|
self.nodes[0].unloadwallet("legacy1")
|
||||||
|
else:
|
||||||
|
self.log.warning("Skipping BDB test")
|
||||||
|
|
||||||
# Make a descriptor wallet
|
# Make a descriptor wallet
|
||||||
self.log.info("Making a descriptor wallet")
|
self.log.info("Making a descriptor wallet")
|
||||||
|
|
Loading…
Add table
Reference in a new issue