throwstd::runtime_error("SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another bitcoind?\n");
throwstd::runtime_error("SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of "PACKAGE_NAME"?\n");
@ -35,7 +35,7 @@ class FilelockTest(BitcoinTestFramework):
wallet_dir=os.path.join(datadir,'wallets')
self.log.info("Check that we can't start a second bitcoind instance using the same wallet")
ifdescriptors:
expected_msg="Error: SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another bitcoind?"
expected_msg=f"Error: SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of {self.config['environment']['PACKAGE_NAME']}?"
error="SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another bitcoind?"
error=f"SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of {self.config['environment']['PACKAGE_NAME']}?"
exp_stderr=r"Error: SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another bitcoind?"
exp_stderr=f"Error: SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of {self.config['environment']['PACKAGE_NAME']}?"
assert_raises_rpc_error(-4,"Wallet file verification failed. SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another bitcoind?",self.nodes[0].loadwallet,wallet_names[0])
assert_raises_rpc_error(-4,f"Wallet file verification failed. SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of {self.config['environment']['PACKAGE_NAME']}?",self.nodes[0].loadwallet,wallet_names[0])
else:
assert_raises_rpc_error(-35,"Wallet file verification failed. Refusing to load database. Data file '{}' is already loaded.".format(path),self.nodes[0].loadwallet,wallet_names[0])