Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/client/testing/testController/common/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ export class PythonTestServer implements ITestServer, Disposable {
// Take all output from the subprocess and add it to the test output channel. This will be the pytest output.
// Displays output to user and ensure the subprocess doesn't run into buffer overflow.
result?.proc?.stdout?.on('data', (data) => {
spawnOptions?.outputChannel?.append(data);
spawnOptions?.outputChannel?.append(data.toString());
});
result?.proc?.stderr?.on('data', (data) => {
spawnOptions?.outputChannel?.append(data);
spawnOptions?.outputChannel?.append(data.toString());
});
result?.proc?.on('exit', () => {
traceLog('Exec server closed.', uuid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ export class PytestTestDiscoveryAdapter implements ITestDiscoveryAdapter {
// Take all output from the subprocess and add it to the test output channel. This will be the pytest output.
// Displays output to user and ensure the subprocess doesn't run into buffer overflow.
result?.proc?.stdout?.on('data', (data) => {
spawnOptions.outputChannel?.append(data);
spawnOptions.outputChannel?.append(data.toString());
});
result?.proc?.stderr?.on('data', (data) => {
spawnOptions.outputChannel?.append(data);
spawnOptions.outputChannel?.append(data.toString());
});
result?.proc?.on('exit', () => {
deferredExec.resolve({ stdout: '', stderr: '' });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
// Take all output from the subprocess and add it to the test output channel. This will be the pytest output.
// Displays output to user and ensure the subprocess doesn't run into buffer overflow.
result?.proc?.stdout?.on('data', (data) => {
this.outputChannel?.append(data);
this.outputChannel?.append(data.toString());
});
result?.proc?.stderr?.on('data', (data) => {
this.outputChannel?.append(data);
this.outputChannel?.append(data.toString());
});

result?.proc?.on('exit', () => {
Expand Down