diff --git a/tests/tests/operation_tests.cpp b/tests/tests/operation_tests.cpp index 92ab7ac4..e7a746c0 100644 --- a/tests/tests/operation_tests.cpp +++ b/tests/tests/operation_tests.cpp @@ -184,10 +184,10 @@ BOOST_AUTO_TEST_CASE( margin_call_limit_test ) borrow( borrower, bitusd.amount(1000), asset(2000)); borrow( borrower2, bitusd.amount(1000), asset(4000) ); - BOOST_REQUIRE_EQUAL( get_balance( borrower, bitusd ), 1000 ); - BOOST_REQUIRE_EQUAL( get_balance( borrower2, bitusd ), 1000 ); - BOOST_REQUIRE_EQUAL( get_balance( borrower , core ), init_balance - 2000 ); - BOOST_REQUIRE_EQUAL( get_balance( borrower2, core ), init_balance - 4000 ); + BOOST_CHECK_EQUAL( get_balance( borrower, bitusd ), 1000 ); + BOOST_CHECK_EQUAL( get_balance( borrower2, bitusd ), 1000 ); + BOOST_CHECK_EQUAL( get_balance( borrower , core ), init_balance - 2000 ); + BOOST_CHECK_EQUAL( get_balance( borrower2, core ), init_balance - 4000 ); // this should trigger margin call that is below the call limit, but above the // protection threshold. @@ -195,22 +195,22 @@ BOOST_AUTO_TEST_CASE( margin_call_limit_test ) auto order = create_sell_order( borrower2, bitusd.amount(1000), core.amount(1400) ); if( db.head_block_time() <= HARDFORK_436_TIME ) { - BOOST_REQUIRE( order == nullptr ); + BOOST_CHECK( order == nullptr ); - BOOST_REQUIRE_EQUAL( get_balance( borrower2, core ), init_balance - 4000 + 1400 ); - BOOST_REQUIRE_EQUAL( get_balance( borrower2, bitusd ), 0 ); + BOOST_CHECK_EQUAL( get_balance( borrower2, core ), init_balance - 4000 + 1400 ); + BOOST_CHECK_EQUAL( get_balance( borrower2, bitusd ), 0 ); - BOOST_REQUIRE_EQUAL( get_balance( borrower, core ), init_balance - 2000 + 600 ); - BOOST_REQUIRE_EQUAL( get_balance( borrower, bitusd ), 1000 ); + BOOST_CHECK_EQUAL( get_balance( borrower, core ), init_balance - 2000 + 600 ); + BOOST_CHECK_EQUAL( get_balance( borrower, bitusd ), 1000 ); } else { - BOOST_REQUIRE( order != nullptr ); + BOOST_CHECK( order != nullptr ); - BOOST_REQUIRE_EQUAL( get_balance( borrower, bitusd ), 1000 ); - BOOST_REQUIRE_EQUAL( get_balance( borrower2, bitusd ), 0 ); - BOOST_REQUIRE_EQUAL( get_balance( borrower , core ), init_balance - 2000 ); - BOOST_REQUIRE_EQUAL( get_balance( borrower2, core ), init_balance - 4000 ); + BOOST_CHECK_EQUAL( get_balance( borrower, bitusd ), 1000 ); + BOOST_CHECK_EQUAL( get_balance( borrower2, bitusd ), 0 ); + BOOST_CHECK_EQUAL( get_balance( borrower , core ), init_balance - 2000 ); + BOOST_CHECK_EQUAL( get_balance( borrower2, core ), init_balance - 4000 ); } BOOST_TEST_MESSAGE( "Creating a margin call that is protected by the max short squeeze price" ); @@ -219,7 +219,7 @@ BOOST_AUTO_TEST_CASE( margin_call_limit_test ) // this should trigger margin call without protection from the price feed. order = create_sell_order( borrower2, bitusd.amount(1000), core.amount(1800) ); - BOOST_REQUIRE( order != nullptr ); + BOOST_CHECK( order != nullptr ); } catch( const fc::exception& e) { edump((e.to_detail_string())); throw;