Fix #162 by adding an active authority to tests that use account_create_op directly
This commit is contained in:
parent
8aa048661f
commit
a4496eccb8
2 changed files with 5 additions and 2 deletions
|
|
@ -139,8 +139,7 @@ void account_create_operation::validate()const
|
|||
FC_ASSERT( referrer_percent <= GRAPHENE_100_PERCENT );
|
||||
FC_ASSERT( owner.num_auths() != 0 );
|
||||
FC_ASSERT( owner.address_auths.size() == 0 );
|
||||
// TODO: this asset causes many tests to fail, those tests should probably be updated
|
||||
//FC_ASSERT( active.num_auths() != 0 );
|
||||
FC_ASSERT( active.num_auths() != 0 );
|
||||
FC_ASSERT( active.address_auths.size() == 0 );
|
||||
options.validate();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -303,6 +303,7 @@ BOOST_AUTO_TEST_CASE( undo_pending )
|
|||
cop.registrar = GRAPHENE_TEMP_ACCOUNT;
|
||||
cop.name = "nathan";
|
||||
cop.owner = authority(1, init_account_pub_key, 1);
|
||||
cop.active = cop.owner;
|
||||
trx.operations.push_back(cop);
|
||||
//trx.sign( init_account_priv_key );
|
||||
PUSH_TX( db, trx );
|
||||
|
|
@ -357,6 +358,7 @@ BOOST_AUTO_TEST_CASE( switch_forks_undo_create )
|
|||
cop.registrar = GRAPHENE_TEMP_ACCOUNT;
|
||||
cop.name = "nathan";
|
||||
cop.owner = authority(1, init_account_pub_key, 1);
|
||||
cop.active = cop.owner;
|
||||
trx.operations.push_back(cop);
|
||||
PUSH_TX( db1, trx );
|
||||
|
||||
|
|
@ -415,6 +417,7 @@ BOOST_AUTO_TEST_CASE( duplicate_transactions )
|
|||
account_create_operation cop;
|
||||
cop.name = "nathan";
|
||||
cop.owner = authority(1, init_account_pub_key, 1);
|
||||
cop.active = cop.owner;
|
||||
trx.operations.push_back(cop);
|
||||
trx.sign( init_account_priv_key );
|
||||
PUSH_TX( db1, trx, skip_sigs );
|
||||
|
|
@ -474,6 +477,7 @@ BOOST_AUTO_TEST_CASE( tapos )
|
|||
cop.registrar = init1.id;
|
||||
cop.name = "nathan";
|
||||
cop.owner = authority(1, init_account_pub_key, 1);
|
||||
cop.active = cop.owner;
|
||||
trx.operations.push_back(cop);
|
||||
trx.sign(init_account_priv_key);
|
||||
db1.push_transaction(trx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue