diff options
| author | MarcoFalke <[email protected]> | 2020-05-11 17:40:21 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-07-09 13:07:37 +0200 |
| commit | faf8401c195f52470d1ca6e2c94cb3820e57ee41 (patch) | |
| tree | 910f9d852aa3d2b8ea6dc5434f791b93096ed036 /src/wallet/test | |
| parent | gui tests: Limit life-time of dummy testing setup (diff) | |
| download | discoin-faf8401c195f52470d1ca6e2c94cb3820e57ee41.tar.xz discoin-faf8401c195f52470d1ca6e2c94cb3820e57ee41.zip | |
wallet: Pass unused args to StartWallets
This refactor does not change behavior
Diffstat (limited to 'src/wallet/test')
| -rw-r--r-- | src/wallet/test/init_test_fixture.cpp | 5 | ||||
| -rw-r--r-- | src/wallet/test/wallet_test_fixture.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/wallet/test/init_test_fixture.cpp b/src/wallet/test/init_test_fixture.cpp index 797a0d634..35bd96567 100644 --- a/src/wallet/test/init_test_fixture.cpp +++ b/src/wallet/test/init_test_fixture.cpp @@ -3,13 +3,14 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <fs.h> +#include <util/check.h> #include <util/system.h> #include <wallet/test/init_test_fixture.h> -InitWalletDirTestingSetup::InitWalletDirTestingSetup(const std::string& chainName): BasicTestingSetup(chainName) +InitWalletDirTestingSetup::InitWalletDirTestingSetup(const std::string& chainName) : BasicTestingSetup(chainName) { - m_chain_client = MakeWalletClient(*m_chain, {}); + m_chain_client = MakeWalletClient(*m_chain, *Assert(m_node.args), {}); std::string sep; sep += fs::path::preferred_separator; diff --git a/src/wallet/test/wallet_test_fixture.h b/src/wallet/test/wallet_test_fixture.h index 6c32868b1..99d7cfe92 100644 --- a/src/wallet/test/wallet_test_fixture.h +++ b/src/wallet/test/wallet_test_fixture.h @@ -10,17 +10,18 @@ #include <interfaces/chain.h> #include <interfaces/wallet.h> #include <node/context.h> +#include <util/check.h> #include <wallet/wallet.h> #include <memory> /** Testing setup and teardown for wallet. */ -struct WalletTestingSetup: public TestingSetup { +struct WalletTestingSetup : public TestingSetup { explicit WalletTestingSetup(const std::string& chainName = CBaseChainParams::MAIN); std::unique_ptr<interfaces::Chain> m_chain = interfaces::MakeChain(m_node); - std::unique_ptr<interfaces::ChainClient> m_chain_client = interfaces::MakeWalletClient(*m_chain, {}); + std::unique_ptr<interfaces::ChainClient> m_chain_client = interfaces::MakeWalletClient(*m_chain, *Assert(m_node.args), {}); CWallet m_wallet; std::unique_ptr<interfaces::Handler> m_chain_notifications_handler; }; |