diff --git a/tests/tests/bsrm_indvd_settlement_tests.cpp b/tests/tests/bsrm_indvd_settlement_tests.cpp index 3e02f9123..42681117c 100644 --- a/tests/tests/bsrm_indvd_settlement_tests.cpp +++ b/tests/tests/bsrm_indvd_settlement_tests.cpp @@ -2340,12 +2340,12 @@ BOOST_AUTO_TEST_CASE( individual_settlement_to_order_and_matching_as_maker_test // seller sells some limit_ptr = create_sell_order( seller_id(db), asset(100000,mpa_id), asset(1000) ); + // the limit order is partially filled + BOOST_REQUIRE( limit_ptr ); + limit_order_id_type limit_id = limit_ptr->get_id(); auto check_result_1 = [&] { - // the limit order is partially filled - BOOST_REQUIRE( limit_ptr ); - // the settled-debt order is fully filled BOOST_CHECK( !db.find_settled_debt_order(mpa_id) ); @@ -2353,7 +2353,7 @@ BOOST_AUTO_TEST_CASE( individual_settlement_to_order_and_matching_as_maker_test // limit order receives = round_up(80073*19824/1000000) = 1588 // settled debt pays = 1669, collateral fee = 1669 - 1588 = 81 - BOOST_CHECK_EQUAL( limit_ptr->for_sale.value, 19927 ); // 100000 - 80073 + BOOST_CHECK_EQUAL( limit_id(db).for_sale.value, 19927 ); // 100000 - 80073 BOOST_CHECK_EQUAL( get_balance( seller_id, mpa_id ), 79873 ); // 179873 - 100000 BOOST_CHECK_EQUAL( get_balance( seller_id, asset_id_type() ), 7957 ); // 6369 + 1588