Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ DEFINE_ERROR_T_MESSAGE_MAP(error)
{ stalled_channel, "stalled channel" },
{ exhausted_channel, "exhausted channel" },
{ sacrificed_channel, "sacrificed channel" },
{ suspended_channel, "sacrificed channel" },
{ suspended_service, "sacrificed service" },
{ suspended_channel, "suspended channel" },
{ suspended_service, "suspended service" },

// blockchain
{ orphan_block, "orphan block" },
Expand Down
4 changes: 2 additions & 2 deletions test/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ BOOST_AUTO_TEST_CASE(error_t__code__suspended_channel__true_expected_message)
const auto ec = code(value);
BOOST_REQUIRE(ec);
BOOST_REQUIRE(ec == value);
BOOST_REQUIRE_EQUAL(ec.message(), "sacrificed channel");
BOOST_REQUIRE_EQUAL(ec.message(), "suspended channel");
}

BOOST_AUTO_TEST_CASE(error_t__code__suspended_service__true_expected_message)
Expand All @@ -125,7 +125,7 @@ BOOST_AUTO_TEST_CASE(error_t__code__suspended_service__true_expected_message)
const auto ec = code(value);
BOOST_REQUIRE(ec);
BOOST_REQUIRE(ec == value);
BOOST_REQUIRE_EQUAL(ec.message(), "sacrificed service");
BOOST_REQUIRE_EQUAL(ec.message(), "suspended service");
}

// blockchain
Expand Down