Skip to content

Commit bedc7d2

Browse files
committed
Fix failing test on windows take 2
The error seems to be that `base` is `c:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\.noConfigDebugAdapterEndpoints` but `noConfigEndpointDir` is `C:\Users\RUNNER~1\AppData\Local\Temp\.noConfigDebugAdapterEndpoints` (the C is capitalised). Getting the fsPath of the URI should normalise the path the same as `base`.
1 parent c997d69 commit bedc7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/unittest/noConfigDebugInit.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ suite('setup for no-config debug scenario', function () {
197197
sinon.assert.calledOnce(createFileSystemWatcherFunct);
198198
const expectedPattern = sinon.match
199199
.instanceOf(RelativePattern)
200-
.and(sinon.match.has('base', noConfigEndpointDir))
200+
.and(sinon.match.has('base', Uri.file(noConfigEndpointDir).fsPath))
201201
.and(sinon.match.has('pattern', sinon.match(/^endpoint-[0-9a-f]{16}\.txt$/)));
202202
sinon.assert.calledWith(createFileSystemWatcherFunct, expectedPattern);
203203
});

0 commit comments

Comments
 (0)