From c53bb8e7142eea1168de418ad53b68ca4fad1c63 Mon Sep 17 00:00:00 2001 From: gregtatcam Date: Thu, 18 Jul 2024 09:41:52 -0400 Subject: [PATCH] Fix Release unit-tests --- src/test/jtx/impl/mpt.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/test/jtx/impl/mpt.cpp b/src/test/jtx/impl/mpt.cpp index 9279ea68c48..909154fb720 100644 --- a/src/test/jtx/impl/mpt.cpp +++ b/src/test/jtx/impl/mpt.cpp @@ -394,12 +394,13 @@ std::uint32_t MPTTester::getFlags(ripple::test::jtx::AccountP holder) const { std::uint32_t flags = 0; - assert(forObject( - [&](SLEP const& sle) { - flags = sle->getFlags(); - return true; - }, - holder)); + if (!forObject( + [&](SLEP const& sle) { + flags = sle->getFlags(); + return true; + }, + holder)) + Throw("Failed to get the flags"); return flags; }