Skip to content

Commit

Permalink
Merge pull request #183 from AntelopeIO/GH-169-eosio-system-tests
Browse files Browse the repository at this point in the history
Update eosio.system_tests, get_producers_tests, and ram_tests unittests to run in Legacy & Savanna
  • Loading branch information
heifner authored May 30, 2024
2 parents e3da612 + 0dfbe2d commit 8cf2129
Show file tree
Hide file tree
Showing 6 changed files with 234 additions and 3,016 deletions.
8 changes: 4 additions & 4 deletions tests/get_producers_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ BOOST_AUTO_TEST_SUITE(get_producers_tests)
using namespace eosio::testing;

// this test verifies the exception case of get_producer, where it is populated by the active schedule of producers
BOOST_AUTO_TEST_CASE( get_producers) { try {
tester chain;
BOOST_AUTO_TEST_CASE_TEMPLATE( get_producers, T, testers ) { try {
T chain;

eosio::chain_apis::read_only plugin(*(chain.control), {}, fc::microseconds::maximum(), fc::microseconds::maximum(), {});
eosio::chain_apis::read_only::get_producers_params params = { .json = true, .lower_bound = "", .limit = 21 };
Expand Down Expand Up @@ -46,8 +46,8 @@ BOOST_AUTO_TEST_CASE( get_producers) { try {
} FC_LOG_AND_RETHROW() }

// this test verifies the normal case of get_producer, where the contents of the system contract's producers table is used
BOOST_AUTO_TEST_CASE( get_producers_from_table) { try {
eosio_system::eosio_system_tester chain;
BOOST_AUTO_TEST_CASE_TEMPLATE( get_producers_from_table, T, eosio_system::eosio_system_testers ) { try {
T chain;

// ensure that enough voting is occurring so that producer1111 is elected as the producer
chain.cross_15_percent_threshold();
Expand Down
Loading

0 comments on commit 8cf2129

Please sign in to comment.