From 07026d3f4cbc52e62932960303b521b5ce4f429f Mon Sep 17 00:00:00 2001 From: eleanorjboyd Date: Tue, 12 Nov 2024 13:29:53 -0800 Subject: [PATCH] fix path to match desired --- src/test/unittest/adapter/factory.unit.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/unittest/adapter/factory.unit.test.ts b/src/test/unittest/adapter/factory.unit.test.ts index 64b0aea..86342d2 100644 --- a/src/test/unittest/adapter/factory.unit.test.ts +++ b/src/test/unittest/adapter/factory.unit.test.ts @@ -41,7 +41,7 @@ suite('Debugging - Adapter Factory', () => { const nodeExecutable = undefined; const debugAdapterPath = path.join(EXTENSION_ROOT_DIR, 'bundled', 'libs', 'debugpy', 'adapter'); - const pythonPath = path.join('path', 'to', 'python', 'interpreter'); + const pythonPath = 'path/to/python/interpreter'; const interpreter = { architecture: Architecture.Unknown, path: pythonPath, @@ -292,9 +292,9 @@ suite('Debugging - Adapter Factory', () => { assert.deepStrictEqual(descriptor, debugExecutable); }); test('Add quotes to interpreter path with spaces', async () => { - const customAdapterPath = path.join('custom', 'debug', 'adapter', 'customAdapterPath'); + const customAdapterPath = 'custom/debug/adapter/customAdapterPath'; const session = createSession({ debugAdapterPath: customAdapterPath }); - const interpreterPathSpaces = path.join('path', 'to', 'python interpreter with spaces'); + const interpreterPathSpaces = 'path/to/python interpreter with spaces'; const interpreterPathSpacesQuoted = `"${interpreterPathSpaces}"`; const debugExecutable = new DebugAdapterExecutable(interpreterPathSpacesQuoted, [customAdapterPath]);