File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 77import string
88
99from test_framework .test_framework import BitcoinTestFramework
10- from test_framework .test_node import ErrorMatch
10+ from test_framework .test_node import (
11+ BITCOIN_PID_FILENAME_DEFAULT ,
12+ ErrorMatch ,
13+ )
1114
1215class FilelockTest (BitcoinTestFramework ):
1316 def add_options (self , parser ):
@@ -33,7 +36,7 @@ def run_test(self):
3336 self .log .info ("Check that cookie and PID file are not deleted when attempting to start a second bitcoind using the same datadir" )
3437 cookie_file = datadir / ".cookie"
3538 assert cookie_file .exists () # should not be deleted during the second bitcoind instance shutdown
36- pid_file = datadir / "bitcoind.pid"
39+ pid_file = datadir / BITCOIN_PID_FILENAME_DEFAULT
3740 assert pid_file .exists ()
3841
3942 if self .is_wallet_compiled ():
Original file line number Diff line number Diff line change 4848NUM_XOR_BYTES = 8
4949# The null blocks key (all 0s)
5050NULL_BLK_XOR_KEY = bytes ([0 ] * NUM_XOR_BYTES )
51+ BITCOIN_PID_FILENAME_DEFAULT = "bitcoind.pid"
5152
5253
5354class FailedToStartError (Exception ):
You can’t perform that action at this time.
0 commit comments