mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 02:11:24 +02:00
test: Use TestNode *_path properties where possible
Seems odd to place the burden on test writers to hardcode the chain or datadir path for the nodes under test.
This commit is contained in:
@ -58,7 +58,7 @@ class MessageCaptureTest(BitcoinTestFramework):
|
||||
self.setup_clean_chain = True
|
||||
|
||||
def run_test(self):
|
||||
capturedir = os.path.join(self.nodes[0].datadir, "regtest/message_capture")
|
||||
capturedir = self.nodes[0].chain_path / "message_capture"
|
||||
# Connect a node so that the handshake occurs
|
||||
self.nodes[0].add_p2p_connection(P2PDataStore())
|
||||
self.nodes[0].disconnect_p2ps()
|
||||
|
Reference in New Issue
Block a user