Skip to content

Commit 07026d3

Browse files
committed
fix path to match desired
1 parent d3f94b4 commit 07026d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/unittest/adapter/factory.unit.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ suite('Debugging - Adapter Factory', () => {
4141

4242
const nodeExecutable = undefined;
4343
const debugAdapterPath = path.join(EXTENSION_ROOT_DIR, 'bundled', 'libs', 'debugpy', 'adapter');
44-
const pythonPath = path.join('path', 'to', 'python', 'interpreter');
44+
const pythonPath = 'path/to/python/interpreter';
4545
const interpreter = {
4646
architecture: Architecture.Unknown,
4747
path: pythonPath,
@@ -292,9 +292,9 @@ suite('Debugging - Adapter Factory', () => {
292292
assert.deepStrictEqual(descriptor, debugExecutable);
293293
});
294294
test('Add quotes to interpreter path with spaces', async () => {
295-
const customAdapterPath = path.join('custom', 'debug', 'adapter', 'customAdapterPath');
295+
const customAdapterPath = 'custom/debug/adapter/customAdapterPath';
296296
const session = createSession({ debugAdapterPath: customAdapterPath });
297-
const interpreterPathSpaces = path.join('path', 'to', 'python interpreter with spaces');
297+
const interpreterPathSpaces = 'path/to/python interpreter with spaces';
298298
const interpreterPathSpacesQuoted = `"${interpreterPathSpaces}"`;
299299
const debugExecutable = new DebugAdapterExecutable(interpreterPathSpacesQuoted, [customAdapterPath]);
300300

0 commit comments

Comments
 (0)