Skip to content

Commit 2539f8a

Browse files
plemarquandmichael-weng
authored andcommitted
Normalize diagnostics paths in tests
1 parent 2d446d2 commit 2539f8a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/integration-tests/DiagnosticsManager.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ import { Workbench } from "../../src/utilities/commands";
2828
const waitForDiagnostics = (uris: vscode.Uri[], allowEmpty: boolean = true) =>
2929
new Promise<void>(res =>
3030
vscode.languages.onDidChangeDiagnostics(e => {
31-
const paths = e.uris.map(u => u.path);
31+
const paths = e.uris.map(u => u.fsPath);
3232
for (const uri of uris) {
33-
if (!paths.includes(uri.path)) {
33+
if (!paths.includes(uri.fsPath)) {
3434
return;
3535
}
3636
if (!allowEmpty && !vscode.languages.getDiagnostics(uri).length) {
@@ -92,6 +92,8 @@ suite("DiagnosticsManager Test Suite", async function () {
9292
let cppHeaderUri: vscode.Uri;
9393

9494
suiteSetup(async function () {
95+
this.timeout(30000);
96+
9597
workspaceContext = await globalWorkspaceContextPromise;
9698
toolchain = workspaceContext.toolchain;
9799
workspaceFolder = testAssetWorkspaceFolder("diagnostics");

0 commit comments

Comments
 (0)