From cd8d7253cb5278f03e82987d9ef46c4fe60cee66 Mon Sep 17 00:00:00 2001
From: pbattu123
Date: Fri, 6 Mar 2020 15:15:51 -0400
Subject: [PATCH] updated tests to keep in-line with plugin changes
---
tests/app/main.cpp | 20 +++++++++++++++++---
tests/cli/main.cpp | 6 +++++-
2 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/tests/app/main.cpp b/tests/app/main.cpp
index e8d31fa1..623f760e 100644
--- a/tests/app/main.cpp
+++ b/tests/app/main.cpp
@@ -28,8 +28,12 @@
#include
+#include
#include
-
+#include
+#include
+#include
+#include
#include
#include
@@ -56,10 +60,15 @@ BOOST_AUTO_TEST_CASE( two_node_network )
BOOST_TEST_MESSAGE( "Creating and initializing app1" );
graphene::app::application app1;
+ app1.register_plugin();
app1.register_plugin();
+ app1.register_plugin();
+ app1.register_plugin();
+ app1.register_plugin();
+ app1.register_plugin();
+
boost::program_options::variables_map cfg;
cfg.emplace("p2p-endpoint", boost::program_options::variable_value(string("127.0.0.1:0"), false));
- cfg.emplace("plugins", boost::program_options::variable_value(string(" "), false));
app1.initialize(app_dir.path(), cfg);
cfg.emplace("genesis-json", boost::program_options::variable_value(create_genesis_file(app_dir), false));
@@ -72,7 +81,12 @@ BOOST_AUTO_TEST_CASE( two_node_network )
auto cfg2 = cfg;
graphene::app::application app2;
- app2.register_plugin();
+ app2.register_plugin();
+ app2.register_plugin();
+ app2.register_plugin();
+ app2.register_plugin();
+ app2.register_plugin();
+ app2.register_plugin();
cfg2.erase("p2p-endpoint");
cfg2.emplace("p2p-endpoint", boost::program_options::variable_value(string("127.0.0.1:0"), false));
cfg2.emplace("seed-node", boost::program_options::variable_value(vector{endpoint1}, false));
diff --git a/tests/cli/main.cpp b/tests/cli/main.cpp
index cfde25d6..9e7a4119 100644
--- a/tests/cli/main.cpp
+++ b/tests/cli/main.cpp
@@ -30,6 +30,8 @@
#include
#include
#include
+#include
+#include
#include
#include
@@ -125,9 +127,11 @@ std::shared_ptr start_application(fc::temp_directory
std::shared_ptr app1(new graphene::app::application{});
app1->register_plugin< graphene::bookie::bookie_plugin>();
- app1->register_plugin();
+ app1->register_plugin< graphene::account_history::account_history_plugin>();
app1->register_plugin< graphene::market_history::market_history_plugin >();
app1->register_plugin< graphene::witness_plugin::witness_plugin >();
+ app1->register_plugin< graphene::accounts_list::accounts_list_plugin >();
+ app1->register_plugin< graphene::affiliate_stats::affiliate_stats_plugin >();
app1->startup_plugins();
boost::program_options::variables_map cfg;
#ifdef _WIN32