mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-07 21:28:40 +02:00
Tests: Use self.chain instead of 'regtest' in almost all current tests
This commit is contained in:
@@ -39,7 +39,7 @@ class MultiWalletTest(BitcoinTestFramework):
|
||||
def run_test(self):
|
||||
node = self.nodes[0]
|
||||
|
||||
data_dir = lambda *p: os.path.join(node.datadir, 'regtest', *p)
|
||||
data_dir = lambda *p: os.path.join(node.datadir, self.chain, *p)
|
||||
wallet_dir = lambda *p: data_dir('wallets', *p)
|
||||
wallet = lambda name: node.get_wallet_rpc(name)
|
||||
|
||||
@@ -187,7 +187,7 @@ class MultiWalletTest(BitcoinTestFramework):
|
||||
assert_equal(w4.getbalance(), 3)
|
||||
|
||||
batch = w1.batch([w1.getblockchaininfo.get_request(), w1.getwalletinfo.get_request()])
|
||||
assert_equal(batch[0]["result"]["chain"], "regtest")
|
||||
assert_equal(batch[0]["result"]["chain"], self.chain)
|
||||
assert_equal(batch[1]["result"]["walletname"], "w1")
|
||||
|
||||
self.log.info('Check for per-wallet settxfee call')
|
||||
|
||||
Reference in New Issue
Block a user