From 1b3c790aa6aa8039230e18182305563be62d60bd Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Mon, 21 Oct 2019 17:57:31 -0300 Subject: [PATCH] adapt son_pay_test to dormant vesting policy --- tests/tests/son_operations_tests.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/tests/tests/son_operations_tests.cpp b/tests/tests/son_operations_tests.cpp index 0d0de848..8d5ae3f2 100644 --- a/tests/tests/son_operations_tests.cpp +++ b/tests/tests/son_operations_tests.cpp @@ -293,7 +293,10 @@ BOOST_AUTO_TEST_CASE( son_pay_test ) vesting_balance_create_operation op; op.creator = alice_id; op.owner = alice_id; - op.amount = asset(10); + op.amount = asset(50*GRAPHENE_BLOCKCHAIN_PRECISION); + op.balance_type = vesting_balance_type::son; + op.policy = dormant_vesting_policy_initializer {}; + trx.operations.push_back(op); for( auto& op : trx.operations ) db.current_fee_schedule().set_fee(op); set_expiration(db, trx); @@ -308,7 +311,9 @@ BOOST_AUTO_TEST_CASE( son_pay_test ) vesting_balance_create_operation op; op.creator = alice_id; op.owner = alice_id; - op.amount = asset(10); + op.amount = asset(1*GRAPHENE_BLOCKCHAIN_PRECISION); + op.balance_type = vesting_balance_type::normal; + trx.operations.push_back(op); for( auto& op : trx.operations ) db.current_fee_schedule().set_fee(op); set_expiration(db, trx); @@ -323,7 +328,10 @@ BOOST_AUTO_TEST_CASE( son_pay_test ) vesting_balance_create_operation op; op.creator = bob_id; op.owner = bob_id; - op.amount = asset(10); + op.amount = asset(50*GRAPHENE_BLOCKCHAIN_PRECISION); + op.balance_type = vesting_balance_type::son; + op.policy = dormant_vesting_policy_initializer {}; + trx.operations.push_back(op); for( auto& op : trx.operations ) db.current_fee_schedule().set_fee(op); set_expiration(db, trx); @@ -338,7 +346,9 @@ BOOST_AUTO_TEST_CASE( son_pay_test ) vesting_balance_create_operation op; op.creator = bob_id; op.owner = bob_id; - op.amount = asset(10); + op.amount = asset(1*GRAPHENE_BLOCKCHAIN_PRECISION); + op.balance_type = vesting_balance_type::normal; + trx.operations.push_back(op); for( auto& op : trx.operations ) db.current_fee_schedule().set_fee(op); set_expiration(db, trx);