From 15724170b825dd05c3a7b18debdcdb7a15c10bf7 Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Wed, 15 Jul 2015 13:45:56 -0400 Subject: [PATCH] Fix test failures due to now-required expiration --- tests/tests/authority_tests.cpp | 2 ++ tests/tests/operation_tests.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/tests/authority_tests.cpp b/tests/tests/authority_tests.cpp index f40c3eb3..8b0c6cbf 100644 --- a/tests/tests/authority_tests.cpp +++ b/tests/tests/authority_tests.cpp @@ -909,6 +909,7 @@ BOOST_FIXTURE_TEST_CASE( max_authority_membership, database_fixture ) private_key_type privkey = generate_private_key( seed ); private_keys.push_back( privkey ); } + tx.set_expiration( db.head_block_time() + fc::minutes(5) ); ptx = PUSH_TX( db, tx, ~0 ); vector key_ids; @@ -946,6 +947,7 @@ BOOST_FIXTURE_TEST_CASE( max_authority_membership, database_fixture ) anon_create_op.name = generate_anon_acct_name(); tx.operations.push_back( anon_create_op ); + tx.set_expiration( db.head_block_time() + fc::minutes(5) ); if( num_keys > max_authority_membership ) { diff --git a/tests/tests/operation_tests.cpp b/tests/tests/operation_tests.cpp index 11620145..cfcacd29 100644 --- a/tests/tests/operation_tests.cpp +++ b/tests/tests/operation_tests.cpp @@ -1391,6 +1391,7 @@ BOOST_AUTO_TEST_CASE( vesting_balance_withdraw_test ) create_op.amount = amount; create_op.policy = cdd_vesting_policy_initializer(vesting_seconds); tx.operations.push_back( create_op ); + tx.set_expiration( db.head_block_time() + fc::minutes(5) ); processed_transaction ptx = PUSH_TX( db, tx, ~0 ); const vesting_balance_object& vbo = vesting_balance_id_type(