Skip to content

Commit

Permalink
change expected assertions in witness_tests according to recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ABW committed Oct 29, 2024
1 parent e40ef95 commit 9e0b3ec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/unit/plugin_tests/witness_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
};

Expand Down Expand Up @@ -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 );

Expand All @@ -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 );

Expand All @@ -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 );

Expand All @@ -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 );

Expand Down

0 comments on commit 9e0b3ec

Please sign in to comment.