[EOSIO/eos] add testcase for #2195 (security delays) (#2417)

brianjohnson5972 commented on this pull request.

> +
+ liquid_balance = get_currency_balance(chain, N(currency));
+ BOOST_REQUIRE_EQUAL(asset::from_string(“999900.0000 CUR”), liquid_balance);
+ liquid_balance = get_currency_balance(chain, N(tester));
+ BOOST_REQUIRE_EQUAL(asset::from_string(“100.0000 CUR”), liquid_balance);
+ liquid_balance = get_currency_balance(chain, N(tester2));
+ BOOST_REQUIRE_EQUAL(asset::from_string(“0.0000 CUR”), liquid_balance);
+
+ try {
+ chain.push_action(config::system_account_name, contracts::unlinkauth::get_name(), tester_account, fc::mutable_variant_object()
+ (“account”, “tester”)
+ (“code”, “currency”)
+ (“type”, “transfer”),
+ 30, 7);
+ BOOST_FAIL(“unlink should have a min delay set by previous linkauth”);
+ } catch (…) { }

Please us BOOST_REQUIRE_EXCEPTION with specific exception details.

This post was last modified on April 16, 2018, 3:52 pm