Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57fedbd

Browse files
authored
Fix unit test broken by recent revert (#14122)
1 parent 94da334 commit 57fedbd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/test/common/installer/moduleInstaller.unit.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
4747
import { EnvironmentType, PythonEnvironment } from '../../../client/pythonEnvironments/info';
4848
import { EXTENSION_ROOT_DIR_FOR_TESTS } from '../../constants';
4949

50-
const isolated = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'pythonFiles', 'pyvsc-run-isolated.py').replace(/\\/g, '/');
50+
const isolated = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'pythonFiles', 'pyvsc-run-isolated.py');
5151

5252
/* Complex test to ensure we cover all combinations:
5353
We could have written separate tests for each installer, but we'd be replicate code.

src/test/common/process/pythonProcess.unit.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { IProcessService, StdErrError } from '../../../client/common/process/typ
1212
import { EXTENSION_ROOT_DIR_FOR_TESTS } from '../../constants';
1313
import { noop } from '../../core';
1414

15-
const isolated = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'pythonFiles', 'pyvsc-run-isolated.py').replace(/\\/g, '/');
15+
const isolated = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'pythonFiles', 'pyvsc-run-isolated.py');
1616

1717
use(chaiAsPromised);
1818

src/test/common/terminals/synchronousTerminalService.unit.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ suite('Terminal Service (synchronous)', () => {
6767
});
6868
});
6969
suite('sendCommand', () => {
70-
const isolated = path.join(EXTENSION_ROOT_DIR, 'pythonFiles', 'pyvsc-run-isolated.py').replace(/\\/g, '/');
70+
const isolated = path.join(EXTENSION_ROOT_DIR, 'pythonFiles', 'pyvsc-run-isolated.py');
7171
const shellExecFile = path.join(EXTENSION_ROOT_DIR, 'pythonFiles', 'shell_exec.py');
7272

7373
test('run sendCommand in terminalService if there is no cancellation token', async () => {

0 commit comments

Comments
 (0)