@@ -62,27 +62,27 @@ def run_test(self):
6262 # should not initialize if wallet path can't be created
6363 self .assert_start_raises_init_error (0 , ['-wallet=wallet.dat/bad' ], 'Not a directory' )
6464
65- self .assert_start_raises_init_error (0 , ['-walletdir=wallets' ], 'Error: Specified -walletdir "wallets" does not exist' )
66- self .assert_start_raises_init_error (0 , ['-walletdir=wallets' ], 'Error: Specified -walletdir "wallets" is a relative path' , cwd = data_dir ())
67- self .assert_start_raises_init_error (0 , ['-walletdir=debug.log' ], 'Error: Specified -walletdir "debug.log" is not a directory' , cwd = data_dir ())
65+ self .nodes [ 0 ]. assert_start_raises_init_error (['-walletdir=wallets' ], 'Error: Specified -walletdir "wallets" does not exist' )
66+ self .nodes [ 0 ]. assert_start_raises_init_error (['-walletdir=wallets' ], 'Error: Specified -walletdir "wallets" is a relative path' , cwd = data_dir ())
67+ self .nodes [ 0 ]. assert_start_raises_init_error (['-walletdir=debug.log' ], 'Error: Specified -walletdir "debug.log" is not a directory' , cwd = data_dir ())
6868
6969 # should not initialize if there are duplicate wallets
70- self .assert_start_raises_init_error (0 , ['-wallet=w1' , '-wallet=w1' ], 'Error loading wallet w1. Duplicate -wallet filename specified.' )
70+ self .nodes [ 0 ]. assert_start_raises_init_error (['-wallet=w1' , '-wallet=w1' ], 'Error loading wallet w1. Duplicate -wallet filename specified.' )
7171
7272 # should not initialize if one wallet is a copy of another
7373 shutil .copyfile (wallet_dir ('w8' ), wallet_dir ('w8_copy' ))
74- self .assert_start_raises_init_error (0 , ['-wallet=w8' , '-wallet=w8_copy' ], 'duplicates fileid' )
74+ self .nodes [ 0 ]. assert_start_raises_init_error (['-wallet=w8' , '-wallet=w8_copy' ], 'duplicates fileid' )
7575
7676 # should not initialize if wallet file is a symlink
7777 os .symlink ('w8' , wallet_dir ('w8_symlink' ))
78- self .assert_start_raises_init_error (0 , ['-wallet=w8_symlink' ], 'Invalid -wallet path' )
78+ self .nodes [ 0 ]. assert_start_raises_init_error (['-wallet=w8_symlink' ], 'Invalid -wallet path' )
7979
8080 # should not initialize if the specified walletdir does not exist
81- self .assert_start_raises_init_error (0 , ['-walletdir=bad' ], 'Error: Specified -walletdir "bad" does not exist' )
81+ self .nodes [ 0 ]. assert_start_raises_init_error (['-walletdir=bad' ], 'Error: Specified -walletdir "bad" does not exist' )
8282 # should not initialize if the specified walletdir is not a directory
8383 not_a_dir = wallet_dir ('notadir' )
8484 open (not_a_dir , 'a' ).close ()
85- self .assert_start_raises_init_error (0 , ['-walletdir=' + not_a_dir ], 'Error: Specified -walletdir "' + not_a_dir + '" is not a directory' )
85+ self .nodes [ 0 ]. assert_start_raises_init_error (['-walletdir=' + not_a_dir ], 'Error: Specified -walletdir "' + not_a_dir + '" is not a directory' )
8686
8787 # if wallets/ doesn't exist, datadir should be the default wallet dir
8888 wallet_dir2 = data_dir ('walletdir' )
@@ -103,7 +103,7 @@ def run_test(self):
103103 competing_wallet_dir = os .path .join (self .options .tmpdir , 'competing_walletdir' )
104104 os .mkdir (competing_wallet_dir )
105105 self .restart_node (0 , ['-walletdir=' + competing_wallet_dir ])
106- self .assert_start_raises_init_error (1 , ['-walletdir=' + competing_wallet_dir ], 'Error initializing wallet database environment' )
106+ self .nodes [ 1 ]. assert_start_raises_init_error (['-walletdir=' + competing_wallet_dir ], 'Error initializing wallet database environment' )
107107
108108 self .restart_node (0 , extra_args )
109109
0 commit comments