Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Jan 5, 2024
1 parent b083b42 commit 278405e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/eosio.system_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3809,12 +3809,12 @@ BOOST_FIXTURE_TEST_CASE( ram_inflation, eosio_system_tester ) try {
} FC_LOG_AND_RETHROW()


// deflationary ram rate
BOOST_FIXTURE_TEST_CASE( ram_deflation, eosio_system_tester ) try {
const uint64_t init_max_ram_size = 64ll*1024 * 1024 * 1024;
const uint64_t cur_ram_size = get_global_state()["max_ram_size"].as_uint64();
const int16_t rate = -1000;

// deflationary ram rate
int16_t negative_rate = -1000;
BOOST_REQUIRE_EQUAL( success(), push_action( config::system_account_name, "setramrate"_n, mvo()("bytes_per_block", negative_rate) ) );
BOOST_REQUIRE_EQUAL( success(), push_action( config::system_account_name, "setramrate"_n, mvo()("bytes_per_block", rate) ) );
BOOST_REQUIRE_EQUAL( cur_ram_size, get_global_state()["max_ram_size"].as_uint64() );
produce_blocks(5);
BOOST_REQUIRE_EQUAL( success(), buyrambytes( "alice1111111", "alice1111111", 100 ) );
Expand Down

0 comments on commit 278405e

Please sign in to comment.