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 7
7
import string
8
8
9
9
from 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
+ )
11
14
12
15
class FilelockTest (BitcoinTestFramework ):
13
16
def add_options (self , parser ):
@@ -33,7 +36,7 @@ def run_test(self):
33
36
self .log .info ("Check that cookie and PID file are not deleted when attempting to start a second bitcoind using the same datadir" )
34
37
cookie_file = datadir / ".cookie"
35
38
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
37
40
assert pid_file .exists ()
38
41
39
42
if self .is_wallet_compiled ():
Original file line number Diff line number Diff line change 48
48
NUM_XOR_BYTES = 8
49
49
# The null blocks key (all 0s)
50
50
NULL_BLK_XOR_KEY = bytes ([0 ] * NUM_XOR_BYTES )
51
+ BITCOIN_PID_FILENAME_DEFAULT = "bitcoind.pid"
51
52
52
53
53
54
class FailedToStartError (Exception ):
You can’t perform that action at this time.
0 commit comments