Skip to content

Commit a915509

Browse files
committed
Normalize diagnostics paths in tests
1 parent 6e59138 commit a915509

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
@@ -27,9 +27,9 @@ import { folderContextPromise, globalWorkspaceContextPromise } from "./extension
2727
const waitForDiagnostics = (uris: vscode.Uri[], allowEmpty: boolean = true) =>
2828
new Promise<void>(res =>
2929
vscode.languages.onDidChangeDiagnostics(e => {
30-
const paths = e.uris.map(u => u.path);
30+
const paths = e.uris.map(u => u.fsPath);
3131
for (const uri of uris) {
32-
if (!paths.includes(uri.path)) {
32+
if (!paths.includes(uri.fsPath)) {
3333
return;
3434
}
3535
if (!allowEmpty && !vscode.languages.getDiagnostics(uri).length) {
@@ -91,6 +91,8 @@ suite("DiagnosticsManager Test Suite", async function () {
9191
let cppHeaderUri: vscode.Uri;
9292

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

0 commit comments

Comments
 (0)