From e859439e9554489f71f295eae7b07a12ce252738 Mon Sep 17 00:00:00 2001 From: gladcow Date: Sun, 6 Oct 2019 14:23:38 +0300 Subject: [PATCH] working cli test --- tests/cli/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cli/main.cpp b/tests/cli/main.cpp index 8fd067b0..464c0a23 100644 --- a/tests/cli/main.cpp +++ b/tests/cli/main.cpp @@ -119,10 +119,9 @@ 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 @@ -135,6 +134,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);