diff --git a/src/test/unittest/adapter/factory.unit.test.ts b/src/test/unittest/adapter/factory.unit.test.ts index 81e7fa7..62adf5c 100644 --- a/src/test/unittest/adapter/factory.unit.test.ts +++ b/src/test/unittest/adapter/factory.unit.test.ts @@ -292,9 +292,9 @@ suite('Debugging - Adapter Factory', () => { assert.deepStrictEqual(descriptor, debugExecutable); }); test('Add quotes to interpreter path with spaces', async () => { - const customAdapterPath = 'custom/debug/adapter/customAdapterPath'; + const customAdapterPath = path.join('custom', 'debug', 'adapter', 'customAdapterPath'); const session = createSession({ debugAdapterPath: customAdapterPath }); - const interpreterPathSpaces = '/path/to/python interpreter with spaces'; + const interpreterPathSpaces = path.join('/path', 'to', 'python interpreter with spaces'); const interpreterPathSpacesQuoted = `"${interpreterPathSpaces}"`; const debugExecutable = new DebugAdapterExecutable(interpreterPathSpacesQuoted, [customAdapterPath]);