Skip to content

Commit

Permalink
Fix Release unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Jul 18, 2024
1 parent eaca1da commit c53bb8e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/test/jtx/impl/mpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::runtime_error>("Failed to get the flags");
return flags;
}

Expand Down

0 comments on commit c53bb8e

Please sign in to comment.