From 017eb9e7fb01512c06418451f336575790d35167 Mon Sep 17 00:00:00 2001 From: Guilherme Lawless Date: Mon, 6 Apr 2020 15:04:59 +0100 Subject: [PATCH] Fix broken RPC tests --- nano/rpc_test/rpc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nano/rpc_test/rpc.cpp b/nano/rpc_test/rpc.cpp index 68dbb21b01..762ed690e8 100644 --- a/nano/rpc_test/rpc.cpp +++ b/nano/rpc_test/rpc.cpp @@ -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)); @@ -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); @@ -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;