Skip to content

Commit 8e23a70

Browse files
authored
Merge pull request #4770 from lohxt1/error_requests_cli_tests_issue
fix: consider request execution errors as `CLI Tests` workflow failure
2 parents 178773d + 2de9b87 commit 8e23a70

File tree

1 file changed

+1
-1
lines changed
  • packages/bruno-cli/src/commands

1 file changed

+1
-1
lines changed

packages/bruno-cli/src/commands/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ const handler = async function (argv) {
617617
}
618618
}
619619

620-
if (summary.failedAssertions + summary.failedTests + summary.failedRequests > 0) {
620+
if ((summary.failedAssertions + summary.failedTests + summary.failedRequests > 0) || (summary?.errorRequests > 0)) {
621621
process.exit(constants.EXIT_STATUS.ERROR_FAILED_COLLECTION);
622622
}
623623
} catch (err) {

0 commit comments

Comments
 (0)