mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-13 00:57:24 +02:00
test: wallet: Split create and load
This commit is contained in:
@@ -584,7 +584,7 @@ BOOST_FIXTURE_TEST_CASE(CreateWallet, TestChain100Setup)
|
||||
WalletContext context;
|
||||
context.args = &m_args;
|
||||
context.chain = m_node.chain.get();
|
||||
auto wallet = TestLoadWallet(context);
|
||||
auto wallet = TestCreateWallet(context);
|
||||
CKey key = GenerateRandomKey();
|
||||
AddKey(*wallet, key);
|
||||
TestUnloadWallet(std::move(wallet));
|
||||
@@ -681,7 +681,7 @@ BOOST_FIXTURE_TEST_CASE(CreateWalletWithoutChain, BasicTestingSetup)
|
||||
{
|
||||
WalletContext context;
|
||||
context.args = &m_args;
|
||||
auto wallet = TestLoadWallet(context);
|
||||
auto wallet = TestCreateWallet(context);
|
||||
BOOST_CHECK(wallet);
|
||||
WaitForDeleteWallet(std::move(wallet));
|
||||
}
|
||||
@@ -692,7 +692,7 @@ BOOST_FIXTURE_TEST_CASE(RemoveTxs, TestChain100Setup)
|
||||
WalletContext context;
|
||||
context.args = &m_args;
|
||||
context.chain = m_node.chain.get();
|
||||
auto wallet = TestLoadWallet(context);
|
||||
auto wallet = TestCreateWallet(context);
|
||||
CKey key = GenerateRandomKey();
|
||||
AddKey(*wallet, key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user