Skip to content

Commit

Permalink
Merge pull request steemit#3475 from steemit/20190823-fix-low-mem-acc…
Browse files Browse the repository at this point in the history
…ount-update2-test

Fix account_update2 test when building with low mem
  • Loading branch information
Michael Vandeberg authored Aug 24, 2019
2 parents 6316e4b + 6bf503d commit e529fc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/tests/operation_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8187,14 +8187,17 @@ BOOST_AUTO_TEST_CASE( account_update2_apply )

const account_object& acct = db->get_account( "alice" );
const account_authority_object& acct_auth = db->get< account_authority_object, by_account >( "alice" );
const account_metadata_object& acct_metadata = db->get< account_metadata_object, by_account >( acct.id );

BOOST_REQUIRE( acct.name == "alice" );
BOOST_REQUIRE( acct_auth.owner == authority( 1, new_private_key.get_public_key(), 1 ) );
BOOST_REQUIRE( acct_auth.active == authority( 2, new_private_key.get_public_key(), 2 ) );
BOOST_REQUIRE( acct.memo_key == new_private_key.get_public_key() );

#ifdef IS_LOW_MEM
const account_metadata_object& acct_metadata = db->get< account_metadata_object, by_account >( acct.id );
BOOST_REQUIRE( acct_metadata.json_metadata == "{\"bar\":\"foo\"}" );
BOOST_REQUIRE( acct_metadata.posting_json_metadata == "{\"success\":true}" );
#endif

validate_database();

Expand Down

0 comments on commit e529fc8

Please sign in to comment.