Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Doris-Extras committed May 21, 2024
1 parent 56c297e commit 4aba894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/test/util/doris_callonce_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ TEST_F(DorisCallOnceTest, TestExceptionHappens) {
throw std::runtime_error("runtime error happens");
return Status::InternalError("");
});
} catch (const std::runtime_error& error1) {
} catch (const std::runtime_error&) {
// Exception has to throw to the call method
runtime_occured = true;
}
Expand All @@ -108,7 +108,7 @@ TEST_F(DorisCallOnceTest, TestExceptionHappens) {
throw std::exception("runtime error happens");
return Status::InternalError("");
});
} catch (const std::runtime_error& error1) {
} catch (const std::runtime_error&) {
// Exception has to throw to the call method, but not runtime error
// so that this code will not hit
runtime_occured = true;
Expand Down

0 comments on commit 4aba894

Please sign in to comment.