From 9e0b3ecb417e022250d4238daee1b7a008d27e14 Mon Sep 17 00:00:00 2001 From: ABW Date: Tue, 29 Oct 2024 15:31:13 +0100 Subject: [PATCH] change expected assertions in witness_tests according to recent changes --- tests/unit/plugin_tests/witness_tests.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/unit/plugin_tests/witness_tests.cpp b/tests/unit/plugin_tests/witness_tests.cpp index 13d8d6e274..d4b4a4b2e0 100644 --- a/tests/unit/plugin_tests/witness_tests.cpp +++ b/tests/unit/plugin_tests/witness_tests.cpp @@ -446,7 +446,7 @@ BOOST_AUTO_TEST_CASE( witness_basic_with_runtime_expiration_02_test ) if( msg_duplicate ) BOOST_REQUIRE( ex.to_string().find( "Duplicate transaction check failed" ) != std::string::npos ); else - BOOST_REQUIRE( ex.to_string().find( "trx.expiration <= now + fc::seconds(HIVE_MAX_TIME_UNTIL_SIGNATURE_EXPIRATION)" ) != std::string::npos ); + BOOST_REQUIRE( ex.to_string().find( "trx.expiration <= now + HIVE_MAX_TIME_UNTIL_SIGNATURE_EXPIRATION" ) != std::string::npos ); } }; @@ -586,8 +586,8 @@ BOOST_AUTO_TEST_CASE( witness_basic_with_runtime_expiration_03_test ) } catch( const fc::assert_exception& ex ) { - BOOST_TEST_MESSAGE("Caught assert exception: " + ex.to_string() ); - BOOST_REQUIRE( ex.to_string().find( "now < trx.expiration" ) != std::string::npos ); + BOOST_TEST_MESSAGE( "Caught assert exception: " + ex.to_string() ); + BOOST_REQUIRE( ex.to_string().find( "now < full_transaction->get_runtime_expiration()" ) != std::string::npos ); } BOOST_REQUIRE( !_accept_transaction_passed ); @@ -605,8 +605,8 @@ BOOST_AUTO_TEST_CASE( witness_basic_with_runtime_expiration_03_test ) } catch( const fc::assert_exception& ex ) { - BOOST_TEST_MESSAGE("Caught assert exception: " + ex.to_string() ); - BOOST_REQUIRE( ex.to_string().find( "Duplicate transaction check failed" ) != std::string::npos ); + BOOST_TEST_MESSAGE( "Caught assert exception: " + ex.to_string() ); + BOOST_REQUIRE( ex.to_string().find( "Duplicate transaction check failed" ) != std::string::npos ); } BOOST_REQUIRE( !_accept_transaction_passed ); @@ -619,7 +619,7 @@ BOOST_AUTO_TEST_CASE( witness_basic_with_runtime_expiration_03_test ) catch( const fc::assert_exception& ex ) { BOOST_TEST_MESSAGE("Caught assert exception: " + ex.to_string() ); - BOOST_REQUIRE( ex.to_string().find( "now < trx.expiration" ) != std::string::npos ); + BOOST_REQUIRE( ex.to_string().find( "now < full_transaction->get_runtime_expiration()" ) != std::string::npos ); } BOOST_REQUIRE( !_accept_transaction_passed ); @@ -635,8 +635,8 @@ BOOST_AUTO_TEST_CASE( witness_basic_with_runtime_expiration_03_test ) } catch( const fc::assert_exception& ex ) { - BOOST_TEST_MESSAGE("Caught assert exception: " + ex.to_string() ); - BOOST_REQUIRE( ex.to_string().find( "Duplicate transaction check failed" ) != std::string::npos ); + BOOST_TEST_MESSAGE( "Caught assert exception: " + ex.to_string() ); + BOOST_REQUIRE( ex.to_string().find( "Duplicate transaction check failed" ) != std::string::npos ); } BOOST_REQUIRE( !_accept_transaction_passed );