From ad4b37c7529e4a6825bd1f8ceb545ee783e7c837 Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Mon, 29 Jul 2024 14:21:33 +0800 Subject: [PATCH] fix - Status code of the test completion is not handled correctly (#1716) --- src/controller/testController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/testController.ts b/src/controller/testController.ts index 931e4847..4242f7ae 100644 --- a/src/controller/testController.ts +++ b/src/controller/testController.ts @@ -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();