Commit 60e81a3d authored by Mariusz's avatar Mariusz

First HF unit-test - doesn't work

parent 713fdc6f
......@@ -367,6 +367,14 @@ struct sps_proposal_database_fixture_performance : public sps_proposal_database_
}
};
struct hf23_database_fixture : public clean_database_fixture
{
hf23_database_fixture( uint16_t shared_file_size_in_mb = 8 )
: clean_database_fixture( shared_file_size_in_mb ){}
virtual ~hf23_database_fixture(){}
};
struct json_rpc_database_fixture : public database_fixture
{
private:
......
#include <boost/test/unit_test.hpp>
#include <steem/chain/steem_fwd.hpp>
#include <steem/protocol/exceptions.hpp>
#include <steem/protocol/hardfork.hpp>
#include <steem/protocol/sps_operations.hpp>
#include <steem/chain/database.hpp>
#include <steem/chain/database_exceptions.hpp>
#include <steem/chain/steem_objects.hpp>
#include <steem/chain/util/reward.hpp>
#include <steem/plugins/rc/rc_objects.hpp>
#include <steem/plugins/rc/resource_count.hpp>
#include <fc/macros.hpp>
#include <fc/crypto/digest.hpp>
#include "../db_fixture/database_fixture.hpp"
#include <cmath>
#include <iostream>
#include <stdexcept>
using namespace steem;
using namespace steem::chain;
using namespace steem::protocol;
using fc::string;
BOOST_FIXTURE_TEST_SUITE( hf23_tests, hf23_database_fixture )
BOOST_AUTO_TEST_CASE( basic_test_01 )
{
try
{
BOOST_TEST_MESSAGE( "Calling clear_account" );
ACTORS( (alice) )
generate_block();
auto _alice = db->get_account( "alice" );
db->clear_account( _alice );
validate_database();
}
FC_LOG_AND_RETHROW()
}
BOOST_AUTO_TEST_SUITE_END()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment