Skip to content

Commit

Permalink
fix ut regression
Browse files Browse the repository at this point in the history
  • Loading branch information
JaySon-Huang committed May 24, 2022
1 parent 158403c commit 6bc27c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dbms/src/Storages/Page/V3/tests/entries_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,14 @@ inline ::testing::AssertionResult getEntryNotExist(
id_entry.first.low,
toDebugString(id_entry.second));
}
catch (DB::Exception & ex)
{
if (ex.code() == ErrorCodes::PS_ENTRY_NOT_EXISTS || ex.code() == ErrorCodes::PS_ENTRY_NO_VALID_VERSION)
return ::testing::AssertionSuccess();
else
error = ex.displayText();
return ::testing::AssertionFailure(::testing::Message(error.c_str()));
}
catch (...)
{
error = getCurrentExceptionMessage(true);
Expand Down

0 comments on commit 6bc27c0

Please sign in to comment.