Skip to content

Commit 4c434ac

Browse files
committed
🔨 additional fixes
1 parent f926b58 commit 4c434ac

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
@@ -80,15 +80,15 @@ suite('Attach Debugger - Experimental', () => {
8080
type: 'pythonExperimental',
8181
port: port,
8282
host: 'localhost',
83-
logToFile: true,
83+
logToFile: false,
8484
debugOptions: [DebugOptions.RedirectOutput]
8585
};
8686
const serviceContainer = TypeMoq.Mock.ofType<IServiceContainer>();
8787
serviceContainer.setup(c => c.get(IPlatformService, TypeMoq.It.isAny())).returns(() => new PlatformService());
8888
const configProvider = new PythonV2DebugConfigurationProvider(serviceContainer.object);
8989

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

9393
await Promise.all([
9494
initializePromise,
@@ -136,12 +136,12 @@ suite('Attach Debugger - Experimental', () => {
136136
});
137137
test('Confirm local and remote paths are translated', async function () {
138138
this.timeout(20000);
139-
this.retries(0);
140139
// Lets skip this test on AppVeyor (very flaky on AppVeyor).
141140
if (IS_APPVEYOR) {
142141
return;
143142
}
144143

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

0 commit comments

Comments
 (0)