Skip to content

Commit

Permalink
fix - Status code of the test completion is not handled correctly (#1716
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jdneo authored Jul 29, 2024
1 parent b0b1e62 commit ad4b37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/testController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ async function executeWithTestRunner(option: IRunOption, testRunner: TestRunner,
}));

disposables.push(testRunner.onDidFinishTestRun((event: TestFinishEvent) => {
if (event.statusCode !== 0) {
if (event.statusCode === 2) { // See: https://build-server-protocol.github.io/docs/specification#statuscode
window.showErrorMessage(event.message ?? 'Failed to run tests.');
}
return resolve();
Expand Down

0 comments on commit ad4b37c

Please sign in to comment.