From 737acd3bbc7605bdcfb8a87476ec9ff0ce98c6db Mon Sep 17 00:00:00 2001 From: eleanorjboyd Date: Thu, 12 Dec 2024 12:19:46 -0800 Subject: [PATCH] add error node on errored subprocess close --- .../testing/testController/pytest/pytestDiscoveryAdapter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts b/src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts index ba4216cf0f7c..ff73b31435a3 100644 --- a/src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts +++ b/src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts @@ -127,6 +127,7 @@ export class PytestTestDiscoveryAdapter implements ITestDiscoveryAdapter { traceError( `Subprocess exited unsuccessfully with exit code ${code} and signal ${signal} on workspace ${uri.fsPath}`, ); + this.resultResolver?.resolveDiscovery(createDiscoveryErrorPayload(code, signal, cwd)); } deferredTillExecClose.resolve(); });