File tree 1 file changed +7
-1
lines changed
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):
27
27
28
28
def run_test (self ):
29
29
datadir = self .nodes [0 ].chain_path
30
+ blocksdir = self .nodes [0 ].blocks_path
30
31
self .log .info (f"Using datadir { datadir } " )
32
+ self .log .info (f"Using blocksdir { blocksdir } " )
31
33
32
34
self .log .info ("Check that we can't start a second bitcoind instance using the same datadir" )
33
35
expected_msg = f"Error: Cannot obtain a lock on directory { datadir } . { self .config ['environment' ]['CLIENT_NAME' ]} is probably already running."
34
36
self .nodes [1 ].assert_start_raises_init_error (extra_args = [f'-datadir={ self .nodes [0 ].datadir_path } ' , '-noserver' ], expected_msg = expected_msg )
35
37
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" )
37
43
cookie_file = datadir / ".cookie"
38
44
assert cookie_file .exists () # should not be deleted during the second bitcoind instance shutdown
39
45
pid_file = datadir / BITCOIN_PID_FILENAME_DEFAULT
You can’t perform that action at this time.
0 commit comments