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

brianjohnson5972 commented on this pull request.

> +
+ chain.produce_blocks();
+
+ 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);
+
+ chain.produce_blocks(16);
+
+ 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);
+
+ // this transaction will be delayed 20 blocks

What does the second delayed transfer do for this test? If it doesn’t add to test coverage and just makes the test run longer, we should remove it.

Добавить комментарий