Skip to content

Commit

Permalink
refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed Nov 8, 2024
1 parent fedd59d commit b039f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
22 changes: 0 additions & 22 deletions src/client/testing/testController/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,28 +169,6 @@ export function pythonTestAdapterRewriteEnabled(serviceContainer: IServiceContai
return experiment.inExperimentSync(EnableTestAdapterRewrite.experiment);
}

// export async function startTestIdsNamedPipe(testIds: string[]): Promise<string> {
// const pipeName: string = generateRandomPipeName('python-test-ids');
// // uses callback so the on connect action occurs after the pipe is created
// await createNamedPipeServer(pipeName, ([_reader, writer]) => {
// traceVerbose('Test Ids named pipe connected');
// // const num = await
// const msg = {
// jsonrpc: '2.0',
// params: testIds,
// } as Message;
// writer
// .write(msg)
// .then(() => {
// writer.end();
// })
// .catch((ex) => {
// traceError('Failed to write test ids to named pipe', ex);
// });
// });
// return pipeName;
// }

interface ExecutionResultMessage extends Message {
params: ExecutionTestPayload;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ export class PytestTestDiscoveryAdapter implements ITestDiscoveryAdapter {
this.resultResolver?.resolveDiscovery(data);
});

try {
await this.runPytestDiscovery(uri, name, executionFactory, interpreter);
} finally {
traceVerbose('donee');
}
await this.runPytestDiscovery(uri, name, executionFactory, interpreter);

// this is only a placeholder to handle function overloading until rewrite is finished
const discoveryPayload: DiscoveredTestPayload = { cwd: uri.fsPath, status: 'success' };
return discoveryPayload;
Expand Down

0 comments on commit b039f71

Please sign in to comment.