Skip to content

Commit fd29890

Browse files
committed
🔨 additional fixes
1 parent fad9dbe commit fd29890

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/debugger/attach.ptvsd.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ suite('Attach Debugger - Experimental', () => {
7575
type: 'pythonExperimental',
7676
port: port,
7777
host: 'localhost',
78-
logToFile: true,
78+
logToFile: false,
7979
debugOptions: [DebugOptions.RedirectOutput]
8080
};
8181
const serviceContainer = TypeMoq.Mock.ofType<IServiceContainer>();
8282
serviceContainer.setup(c => c.get(IPlatformService, TypeMoq.It.isAny())).returns(() => new PlatformService());
8383
const configProvider = new PythonV2DebugConfigurationProvider(serviceContainer.object);
8484

85-
const launchArgs = await configProvider.resolveDebugConfiguration({ index: 0, name: 'root', uri: Uri.file(localRoot) }, options);
86-
const attachPromise = debugClient.attachRequest(launchArgs);
85+
await configProvider.resolveDebugConfiguration({ index: 0, name: 'root', uri: Uri.file(localRoot) }, options);
86+
const attachPromise = debugClient.attachRequest(options);
8787

8888
await Promise.all([
8989
initializePromise,
@@ -131,12 +131,12 @@ suite('Attach Debugger - Experimental', () => {
131131
});
132132
test('Confirm local and remote paths are translated', async function () {
133133
this.timeout(20000);
134-
this.retries(0);
135134
// Lets skip this test on AppVeyor (very flaky on AppVeyor).
136135
if (IS_APPVEYOR) {
137136
return;
138137
}
139138

139+
// If tests are running on windows, then treat debug client as a unix client and remote process as current OS.
140140
const localWorkspace = IS_WINDOWS ? '/home/user/Desktop/project/src' : 'C:\\Project\\src';
141141
const pathSeparator = IS_WINDOWS ? '/' : '\\';
142142
await testAttachingToRemoteProcess(localWorkspace, path.dirname(fileToDebug), pathSeparator);

0 commit comments

Comments
 (0)