Skip to content

Commit 49ec97f

Browse files
committed
✨ remote path mapping
1 parent 38505c1 commit 49ec97f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ suite('Attach Debugger - Experimental', () => {
116116
stdOutPromise, stdErrPromise
117117
]);
118118

119-
await debugClient.assertStoppedLocation('breakpoint', breakpointLocation);
119+
// Unfortunately PTVSD will be running on the current OS, hence paths will be concatenated using current OS path separator.
120+
const expectedBreapointFile = path.join(localRoot, path.basename(fileToDebug));
121+
await debugClient.assertStoppedLocation('breakpoint', { path: expectedBreapointFile, column: 1, line: 12 });
120122

121123
await Promise.all([
122124
continueDebugging(debugClient),
@@ -136,6 +138,7 @@ suite('Attach Debugger - Experimental', () => {
136138
});
137139
test('Confirm localpath translations are done correctly', async function () {
138140
this.timeout(20000);
141+
this.retries(0);
139142
// Lets skip this test on AppVeyor (very flaky on AppVeyor).
140143
if (IS_APPVEYOR) {
141144
return;

0 commit comments

Comments
 (0)