Skip to content

Commit

Permalink
test: fix test runner to detect statement execution error
Browse files Browse the repository at this point in the history
  • Loading branch information
kuron99 committed Feb 20, 2025
1 parent 548b7ec commit 1984169
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mock/jogasaki/utils/runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ runner& runner::run() {
} else {
// Call api for statement (i.e. no result records).
// There is no execute() api without requesting result set, so use execute_async with sync = true
if(! executor::execute_async(
if((! executor::execute_async(
get_impl(*db_),
tc,
maybe_shared_ptr{stmt.get()},
Expand All @@ -131,8 +131,8 @@ runner& runner::run() {
*out_stats = stats;
},
request_info{},
true
) &&
true) ||
res != status::ok) &&
! expect_error_) {
exec_fail(string_builder{} << "execution failed. executor::execute() - " << (*out)->message() << string_builder::to_string);
}
Expand Down

0 comments on commit 1984169

Please sign in to comment.