Skip to content

Commit

Permalink
Fix stake tests
Browse files Browse the repository at this point in the history
  • Loading branch information
afalaleev committed Jun 3, 2019
1 parent 67ef499 commit 93e7aec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cyber.stake_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,12 @@ BOOST_FIXTURE_TEST_CASE(bw_tests, cyber_stake_tester) try {
produce_block();
BOOST_CHECK(err.is_insufficient_staked_mssg(stake.setproxylvl(_bob, token._symbol.to_symbol_code(), 1)));
for (int i = 0; i < 3; ++i) {
BOOST_CHECK_EQUAL(success(), stake.setproxylvl(_alice, token._symbol.to_symbol_code(), 3, false));
BOOST_CHECK_EQUAL(success(), stake.setproxylvl(_alice, token._symbol.to_symbol_code(), 2, false));
BOOST_CHECK_EQUAL(success(), stake.setproxylvl(_alice, token._symbol.to_symbol_code(), 3));
BOOST_CHECK_EQUAL(success(), stake.setproxylvl(_alice, token._symbol.to_symbol_code(), 2));
produce_block();
}
BOOST_CHECK_EQUAL(success(), stake.setproxylvl(_alice, token._symbol.to_symbol_code(), 3, false));
BOOST_CHECK(err.is_insufficient_staked_mssg(stake.setproxylvl(_alice, token._symbol.to_symbol_code(), 1)));
BOOST_CHECK_EQUAL(success(), stake.setproxylvl(_alice, token._symbol.to_symbol_code(), 3));
BOOST_CHECK_EQUAL(success(), stake.setproxylvl(_alice, token._symbol.to_symbol_code(), 1));
produce_block();
auto params = control->get_global_properties().configuration;
auto prev_min_ram = params.min_virtual_limits[resource_limits::RAM];
Expand Down

0 comments on commit 93e7aec

Please sign in to comment.