Skip to content

Commit

Permalink
Fix broken RPC tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermelawless committed Apr 6, 2020
1 parent af3307b commit 017eb9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nano/rpc_test/rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1856,6 +1856,7 @@ TEST (rpc, process_block_with_work_watcher)
nano::node_config node_config (nano::get_available_port (), system.logging);
node_config.enable_voting = false;
node_config.work_watcher_period = 1s;
node_config.max_work_generate_multiplier = 1e6;
auto & node1 = *add_ipc_enabled_node (system, node_config);
nano::keypair key;
auto latest (node1.latest (nano::test_genesis_key.pub));
Expand Down Expand Up @@ -2953,7 +2954,9 @@ TEST (rpc, work_generate)
TEST (rpc, work_generate_difficulty)
{
nano::system system;
auto node = add_ipc_enabled_node (system);
nano::node_config node_config (nano::get_available_port (), system.logging);
node_config.max_work_generate_multiplier = 1000;
auto node = add_ipc_enabled_node (system, node_config);
scoped_io_thread_name_change scoped_thread_name_io;
nano::node_rpc_config node_rpc_config;
nano::ipc::ipc_server ipc_server (*node, node_rpc_config);
Expand Down Expand Up @@ -3024,6 +3027,7 @@ TEST (rpc, work_generate_multiplier)
{
nano::system system;
nano::node_config node_config (nano::get_available_port (), system.logging);
node_config.max_work_generate_multiplier = 100;
auto node = add_ipc_enabled_node (system, node_config);
scoped_io_thread_name_change scoped_thread_name_io;
nano::node_rpc_config node_rpc_config;
Expand Down

0 comments on commit 017eb9e

Please sign in to comment.