From 0218cbe2c4a3203d51b427e011c289988efa85f4 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Mon, 15 Jul 2024 06:54:14 -0500 Subject: [PATCH 1/2] instant_finality_extension renamed to finality_extension --- tests/eosio.bios_inst_fin_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/eosio.bios_inst_fin_tests.cpp b/tests/eosio.bios_inst_fin_tests.cpp index e3e3f50..7e024d0 100644 --- a/tests/eosio.bios_inst_fin_tests.cpp +++ b/tests/eosio.bios_inst_fin_tests.cpp @@ -55,7 +55,7 @@ BOOST_FIXTURE_TEST_CASE( set_1_finalizer, eosio_bios_if_tester ) try { fc::variant pretty_output; abi_serializer::to_variant( *cur_block, pretty_output, get_resolver(), fc::microseconds::maximum() ); - BOOST_REQUIRE(pretty_output.get_object().contains("instant_finality_extension")); + BOOST_REQUIRE(pretty_output.get_object().contains("finality_extension")); std::string output_json = fc::json::to_pretty_string(pretty_output); BOOST_TEST(output_json.find("\"generation\": 1") != std::string::npos); BOOST_TEST(output_json.find("\"threshold\": 2") != std::string::npos); @@ -86,7 +86,7 @@ BOOST_FIXTURE_TEST_CASE( set_2_finalizers, eosio_bios_if_tester ) try { fc::variant pretty_output; abi_serializer::to_variant( *cur_block, pretty_output, get_resolver(), fc::microseconds::maximum() ); - BOOST_REQUIRE(pretty_output.get_object().contains("instant_finality_extension")); + BOOST_REQUIRE(pretty_output.get_object().contains("finality_extension")); std::string output_json = fc::json::to_pretty_string(pretty_output); BOOST_TEST(output_json.find("\"generation\": 1") != std::string::npos); BOOST_TEST(output_json.find("\"threshold\": 5") != std::string::npos); From 759f8014604affe865698b9aace0ee0c14b41dfb Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Mon, 15 Jul 2024 07:25:09 -0500 Subject: [PATCH 2/2] instant_finality_extension renamed to finality_extension --- tests/eosio.bios_inst_fin_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/eosio.bios_inst_fin_tests.cpp b/tests/eosio.bios_inst_fin_tests.cpp index 7e024d0..a60cfde 100644 --- a/tests/eosio.bios_inst_fin_tests.cpp +++ b/tests/eosio.bios_inst_fin_tests.cpp @@ -55,8 +55,8 @@ BOOST_FIXTURE_TEST_CASE( set_1_finalizer, eosio_bios_if_tester ) try { fc::variant pretty_output; abi_serializer::to_variant( *cur_block, pretty_output, get_resolver(), fc::microseconds::maximum() ); - BOOST_REQUIRE(pretty_output.get_object().contains("finality_extension")); std::string output_json = fc::json::to_pretty_string(pretty_output); + BOOST_TEST(output_json.find("finality_extension") != std::string::npos); BOOST_TEST(output_json.find("\"generation\": 1") != std::string::npos); BOOST_TEST(output_json.find("\"threshold\": 2") != std::string::npos); BOOST_TEST(output_json.find("set_1_finalizer") != std::string::npos); @@ -86,8 +86,8 @@ BOOST_FIXTURE_TEST_CASE( set_2_finalizers, eosio_bios_if_tester ) try { fc::variant pretty_output; abi_serializer::to_variant( *cur_block, pretty_output, get_resolver(), fc::microseconds::maximum() ); - BOOST_REQUIRE(pretty_output.get_object().contains("finality_extension")); std::string output_json = fc::json::to_pretty_string(pretty_output); + BOOST_TEST(output_json.find("finality_extension") != std::string::npos); BOOST_TEST(output_json.find("\"generation\": 1") != std::string::npos); BOOST_TEST(output_json.find("\"threshold\": 5") != std::string::npos); BOOST_TEST(output_json.find("set_2_finalizer_2") != std::string::npos);