Skip to content

Commit 9b53434

Browse files
committed
BSIP 40: Changes for Travis CI
1 parent c44e5dc commit 9b53434

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

tests/tests/custom_authority_tests.cpp

+22-13
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
869869
// }
870870
//]
871871

872+
wdump((op));
873+
872874
// Alice publishes the custom authority
873875
trx.clear();
874876
trx.operations = {op};
@@ -1705,8 +1707,11 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
17051707
// Create a UIA
17061708
//////
17071709
upgrade_to_lifetime_member(alice);
1708-
const asset_object &alicecoin = create_user_issued_asset("ALICECOIN", alice, white_list);
1709-
const asset_object &specialcoin = create_user_issued_asset( "SPECIALCOIN", alice, white_list );
1710+
create_user_issued_asset("ALICECOIN", alice, white_list);
1711+
create_user_issued_asset("SPECIALCOIN", alice, white_list);
1712+
generate_blocks(1);
1713+
const asset_object &alicecoin = *db.get_index_type<asset_index>().indices().get<by_symbol>().find("ALICECOIN");
1714+
const asset_object &specialcoin = *db.get_index_type<asset_index>().indices().get<by_symbol>().find("SPECIALCOIN");
17101715
const asset_id_type alicecoin_id = alicecoin.id;
17111716

17121717

@@ -1886,8 +1891,11 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
18861891
// Create user-issued assets
18871892
//////
18881893
upgrade_to_lifetime_member(alice);
1889-
const asset_object &alicecoin = create_user_issued_asset("ALICECOIN", alice, white_list);
1890-
const asset_object &specialcoin = create_user_issued_asset( "SPECIALCOIN", alice, white_list );
1894+
create_user_issued_asset("ALICECOIN", alice, white_list);
1895+
create_user_issued_asset("SPECIALCOIN", alice, white_list);
1896+
generate_blocks(1);
1897+
const asset_object &alicecoin = *db.get_index_type<asset_index>().indices().get<by_symbol>().find("ALICECOIN");
1898+
const asset_object &specialcoin = *db.get_index_type<asset_index>().indices().get<by_symbol>().find("SPECIALCOIN");
18911899
const asset_id_type alicecoin_id = alicecoin.id;
18921900

18931901

@@ -3142,7 +3150,9 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
31423150
// Create user-issued assets
31433151
//////
31443152
upgrade_to_lifetime_member(alice);
3145-
const asset_object &alicecoin = create_bitasset("ALICECOIN", alice.get_id());
3153+
create_bitasset("ALICECOIN", alice.get_id());
3154+
generate_blocks(1);
3155+
const asset_object &alicecoin = *db.get_index_type<asset_index>().indices().get<by_symbol>().find("ALICECOIN");
31463156

31473157

31483158
//////
@@ -3337,7 +3347,9 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
33373347
// Create user-issued assets
33383348
//////
33393349
upgrade_to_lifetime_member(alice);
3340-
const asset_object &alicecoin = create_bitasset("ALICECOIN", alice.get_id());
3350+
create_bitasset("ALICECOIN", alice.get_id());
3351+
generate_blocks(1);
3352+
const asset_object &alicecoin = *db.get_index_type<asset_index>().indices().get<by_symbol>().find("ALICECOIN");
33413353

33423354

33433355
//////
@@ -3832,14 +3844,9 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
38323844

38333845

38343846
//////
3835-
// Advance the blockchain to get the finalized CAA and HTLC IDs
3847+
// Advance the blockchain to get the finalized HTLC ID
38363848
//////
38373849
generate_blocks(1);
3838-
3839-
auto caa =
3840-
db.get_index_type<custom_authority_index>().indices().get<by_account_custom>().find(alice.get_id());
3841-
custom_authority_id_type caa_id = caa->id;
3842-
38433850
graphene::chain::htlc_id_type alice_htlc_id =
38443851
db.get_index_type<htlc_index>().indices().get<by_from_id>().find(alice.get_id())->id;
38453852

@@ -3899,9 +3906,11 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
38993906

39003907

39013908
//////
3902-
// Advance the blockchain to generate distinctive hash IDs for the similar transactions
3909+
// Advance the blockchain to get the finalized CAA ID
39033910
//////
39043911
generate_blocks(1);
3912+
auto caa = db.get_index_type<custom_authority_index>().indices().get<by_account_custom>().find(gateway.get_id());
3913+
custom_authority_id_type caa_id = caa->id;
39053914

39063915

39073916
//////

0 commit comments

Comments
 (0)