Skip to content

Commit ad4b37c

Browse files
authored
fix - Status code of the test completion is not handled correctly (#1716)
1 parent b0b1e62 commit ad4b37c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/testController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ async function executeWithTestRunner(option: IRunOption, testRunner: TestRunner,
363363
}));
364364

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

0 commit comments

Comments
 (0)