Skip to content

Commit

Permalink
Update group_order_api_tests.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
manikey123 authored Jan 15, 2019
1 parent ba3a895 commit c0a1109
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions tests/tests/group_order_api_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,17 @@ BOOST_AUTO_TEST_CASE(api_limit_get_grouped_limit_orders) {
//account_id_type() do 3 ops
create_bitasset("USD", account_id_type());
create_account("dan");
create_account("bob");

asset_id_type bit_jmj_id = create_bitasset("JMJBIT").id;
generate_block();
fc::usleep(fc::milliseconds(2000));

GRAPHENE_CHECK_THROW(orders_api.get_grouped_limit_orders(asset_id_type(), asset_id_type(),10, start,260), fc::exception);
vector< limit_order_group > orders =orders_api.get_grouped_limit_orders(asset_id_type(), bit_jmj_id, 10,start,240);
BOOST_REQUIRE_EQUAL( orders.size(), 0);
}
catch (fc::exception &e)
create_account("bob");
asset_id_type bit_jmj_id = create_bitasset("JMJBIT").id;
generate_block();
fc::usleep(fc::milliseconds(2000));
GRAPHENE_CHECK_THROW(orders_api.get_grouped_limit_orders(asset_id_type(), asset_id_type(),10, start,260), fc::exception);
vector< limit_order_group > orders =orders_api.get_grouped_limit_orders(asset_id_type(), bit_jmj_id, 10,start,240);
BOOST_REQUIRE_EQUAL( orders.size(), 0);
}catch (fc::exception &e)
{
edump((e.to_detail_string()));
throw;
}
edump((e.to_detail_string()));
throw;
}
}


BOOST_AUTO_TEST_SUITE_END()

0 comments on commit c0a1109

Please sign in to comment.