Skip to content

Commit

Permalink
Fix up test overrides.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Feb 25, 2024
1 parent 9e42bc0 commit 5de786b
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions test/chasers/chaser_header.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,15 @@ class mock_chaser_header
return tree_;
}

const network::wall_clock::duration& currency_window() const NOEXCEPT
{
return chaser_header::currency_window();
}

bool use_currency_window() const NOEXCEPT
code start() NOEXCEPT override
{
return chaser_header::use_currency_window();
return chaser_header::start();
}

code start() NOEXCEPT override
void organize(const system::chain::header::cptr& header_ptr,
network::result_handler&& handler) NOEXCEPT override
{
return chaser_header::start();
chaser_header::organize(header_ptr, std::move(handler));
}

void handle_event(const code& ec, chase event_,
Expand Down Expand Up @@ -88,6 +84,22 @@ class mock_chaser_header
{
return chaser_header::push(key);
}

void do_organize(const system::chain::header::cptr& header,
const network::result_handler& handler) NOEXCEPT override
{
return chaser_header::do_organize(header, handler);
}

const network::wall_clock::duration& currency_window() const NOEXCEPT override
{
return chaser_header::currency_window();
}

bool use_currency_window() const NOEXCEPT override
{
return chaser_header::use_currency_window();
}
};

BOOST_AUTO_TEST_CASE(chaser_header_test__currency_window__zero__use_currency_window_false)
Expand Down

0 comments on commit 5de786b

Please sign in to comment.