Skip to content

Commit

Permalink
Replace BOOST_TEST with BOOST_CHECK
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjatlanta committed Apr 28, 2020
1 parent 06b0fe3 commit ccef9fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1759,14 +1759,14 @@ BOOST_AUTO_TEST_CASE( cli_create_htlc_bsip64 )
{
BOOST_TEST_MESSAGE("Bob can look at the history of Alice to see the preimage");
std::vector<graphene::wallet::operation_detail> hist = con.wallet_api_ptr->get_account_history("alice", 1);
BOOST_TEST( hist[0].description.find("with preimage \"4d792") != hist[0].description.npos);
BOOST_CHECK( hist[0].description.find("with preimage \"4d792") != hist[0].description.npos);
}

// Bob can also look at his own history to see Alice's preimage
{
BOOST_TEST_MESSAGE("Bob can look at his own history to see the preimage");
std::vector<graphene::wallet::operation_detail> hist = con.wallet_api_ptr->get_account_history("bob", 1);
BOOST_TEST( hist[0].description.find("with preimage \"4d792") != hist[0].description.npos);
BOOST_CHECK( hist[0].description.find("with preimage \"4d792") != hist[0].description.npos);
}

// Bob can use the preimage to retrieve his BTS
Expand Down

0 comments on commit ccef9fd

Please sign in to comment.