File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,19 @@ def setup_network(self):
2727
2828 def run_test (self ):
2929 datadir = self .nodes [0 ].chain_path
30+ blocksdir = self .nodes [0 ].blocks_path
3031 self .log .info (f"Using datadir { datadir } " )
32+ self .log .info (f"Using blocksdir { blocksdir } " )
3133
3234 self .log .info ("Check that we can't start a second bitcoind instance using the same datadir" )
3335 expected_msg = f"Error: Cannot obtain a lock on directory { datadir } . { self .config ['environment' ]['CLIENT_NAME' ]} is probably already running."
3436 self .nodes [1 ].assert_start_raises_init_error (extra_args = [f'-datadir={ self .nodes [0 ].datadir_path } ' , '-noserver' ], expected_msg = expected_msg )
3537
36- self .log .info ("Check that cookie and PID file are not deleted when attempting to start a second bitcoind using the same datadir" )
38+ self .log .info ("Check that we can't start a second bitcoind instance using the same blocksdir" )
39+ expected_msg = f"Error: Cannot obtain a lock on directory { blocksdir } . { self .config ['environment' ]['CLIENT_NAME' ]} is probably already running."
40+ self .nodes [1 ].assert_start_raises_init_error (extra_args = [f'-blocksdir={ self .nodes [0 ].datadir_path } ' , '-noserver' ], expected_msg = expected_msg )
41+
42+ self .log .info ("Check that cookie and PID file are not deleted when attempting to start a second bitcoind using the same datadir/blocksdir" )
3743 cookie_file = datadir / ".cookie"
3844 assert cookie_file .exists () # should not be deleted during the second bitcoind instance shutdown
3945 pid_file = datadir / BITCOIN_PID_FILENAME_DEFAULT
You can’t perform that action at this time.
0 commit comments