Fix unit test rpc.confirmation_info (remove scheduler flush) (#3735)

Removed the need for scheduler flush, which is broken.
This commit is contained in:
Dimitrios Siganos 2022-02-14 21:07:53 +00:00 committed by GitHub
commit ca3ec20ee8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6246,9 +6246,7 @@ TEST (rpc, confirmation_info)
auto send (std::make_shared<nano::send_block> (nano::dev::genesis->hash (), nano::public_key (), nano::dev::constants.genesis_amount - 100, nano::dev::genesis_key.prv, nano::dev::genesis_key.pub, *system.work.generate (nano::dev::genesis->hash ())));
node1->process_active (send);
node1->block_processor.flush ();
node1->scheduler.flush ();
ASSERT_FALSE (node1->active.empty ());
ASSERT_TIMELY (5s, !node1->active.empty ());
boost::property_tree::ptree request;
request.put ("action", "confirmation_info");