Skip to content

Commit

Permalink
test_utils: const& exception catch clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
WillemKauf committed Aug 26, 2024
1 parent cccf7e6 commit 44f254f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v/test_utils/async.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ using namespace std::chrono_literals;
do { \
try { \
co_await tests::cooperative_spin_wait_with_timeout(__VA_ARGS__); \
} catch (ss::timed_out_error&) { \
} catch (const ss::timed_out_error&) { \
RPTEST_FAIL_CORO( \
ssx::sformat("Timed out at {}:{}", __FILE__, __LINE__)); \
} \
Expand All @@ -44,7 +44,7 @@ using namespace std::chrono_literals;
do { \
try { \
tests::cooperative_spin_wait_with_timeout(__VA_ARGS__).get(); \
} catch (ss::timed_out_error&) { \
} catch (const ss::timed_out_error&) { \
RPTEST_FAIL( \
ssx::sformat("Timed out at {}:{}", __FILE__, __LINE__)); \
} \
Expand Down

0 comments on commit 44f254f

Please sign in to comment.