Skip to content

Commit

Permalink
Comment out SMT tests for now, will be re-enabled by #1582
Browse files Browse the repository at this point in the history
  • Loading branch information
theoreticalbts committed Oct 4, 2017
1 parent d292d13 commit 770e213
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions tests/tests/smt_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ BOOST_AUTO_TEST_CASE( elevate_account_apply )
FC_LOG_AND_RETHROW()
}

/*
BOOST_AUTO_TEST_CASE( setup_emissions_validate )
{
try
Expand Down Expand Up @@ -147,12 +148,13 @@ BOOST_AUTO_TEST_CASE( setup_emissions_validate )
op.rep_abs_amount = ASSET( "0 alice" );
// Both amounts are equal zero.
STEEM_REQUIRE_THROW( op.validate(), fc::exception );
op.rep_abs_amount = ASSET( "1000 alice" );
op.validate();
}
FC_LOG_AND_RETHROW()
}
*/

BOOST_AUTO_TEST_CASE( set_setup_parameters_validate )
{
Expand All @@ -176,6 +178,7 @@ BOOST_AUTO_TEST_CASE( set_setup_parameters_validate )
FC_LOG_AND_RETHROW()
}

/*
BOOST_AUTO_TEST_CASE( setup_emissions_authorities )
{
try
Expand All @@ -201,6 +204,7 @@ BOOST_AUTO_TEST_CASE( setup_emissions_authorities )
}
FC_LOG_AND_RETHROW()
}
*/

BOOST_AUTO_TEST_CASE( set_setup_parameters_authorities )
{
Expand All @@ -225,12 +229,13 @@ BOOST_AUTO_TEST_CASE( set_setup_parameters_authorities )
FC_LOG_AND_RETHROW()
}

/*
BOOST_AUTO_TEST_CASE( setup_emissions_apply )
{
try
{
ACTORS( (alice)(bob) )
smt_setup_emissions_operation op;
op.control_account = "alice";
fc::time_point now = fc::time_point::now();
Expand All @@ -251,16 +256,16 @@ BOOST_AUTO_TEST_CASE( setup_emissions_apply )
{
set_price_feed( price( ASSET( "1.000 TESTS" ), ASSET( "1.000 TBD" ) ) );
fund( "alice", 10 * 1000 * 1000 );
smt_elevate_account_operation op;
op.fee = ASSET( "1000.000 TBD" );
op.account = "alice";
convert( "alice", ASSET( "5000.000 TESTS" ) );
signed_transaction tx;
tx.operations.push_back( op );
tx.set_expiration( db->head_block_time() + STEEM_MAX_TIME_UNTIL_EXPIRATION );
tx.sign( alice_private_key, db->get_chain_id() );
Expand All @@ -283,6 +288,7 @@ BOOST_AUTO_TEST_CASE( setup_emissions_apply )
}
FC_LOG_AND_RETHROW()
}
*/

BOOST_AUTO_TEST_CASE( set_setup_parameters_apply )
{
Expand All @@ -293,7 +299,7 @@ BOOST_AUTO_TEST_CASE( set_setup_parameters_apply )

fund( "dany", 5000 );
convert( "dany", ASSET( "5000.000 TESTS" ) );

smt_set_setup_parameters_operation op;
op.control_account = "dany";

Expand Down

0 comments on commit 770e213

Please sign in to comment.