From 4bf90d0592a95881fa57ce7a6c62abb44a62b4e1 Mon Sep 17 00:00:00 2001 From: gladcow Date: Wed, 9 Oct 2019 19:57:12 +0300 Subject: [PATCH] fix for cli test --- tests/cli/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/cli/main.cpp b/tests/cli/main.cpp index ee59f40f..0528d23b 100644 --- a/tests/cli/main.cpp +++ b/tests/cli/main.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -118,8 +119,10 @@ int get_available_port() std::shared_ptr start_application(fc::temp_directory& app_dir, int& server_port_number) { std::shared_ptr app1(new graphene::app::application{}); - app1->register_plugin< graphene::bookie::bookie_plugin>(); + app1->register_plugin(); app1->register_plugin(); + app1->register_plugin(); + app1->register_plugin(); app1->startup_plugins(); boost::program_options::variables_map cfg; #ifdef _WIN32 @@ -132,6 +135,7 @@ std::shared_ptr start_application(fc::temp_directory ); cfg.emplace("genesis-json", boost::program_options::variable_value(create_genesis_file(app_dir), false)); cfg.emplace("seed-nodes", boost::program_options::variable_value(string("[]"), false)); + cfg.emplace("plugins", boost::program_options::variable_value(string("bookie account_history market_history"), false)); app1->initialize(app_dir.path(), cfg); @@ -479,4 +483,4 @@ BOOST_FIXTURE_TEST_CASE( account_history_pagination, cli_fixture ) edump((e.to_detail_string())); throw; } -} \ No newline at end of file +}