Skip to content

Commit 2e247a1

Browse files
committed
Ignore macro related information prior to 6.1
1 parent 50653f0 commit 2e247a1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/integration-tests/DiagnosticsManager.test.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function assertWithoutDiagnostic(uri: vscode.Uri, expected: vscode.Diagnostic) {
6666
);
6767
}
6868

69-
suite("DiagnosticsManager Test Suite", function () {
69+
suite.only("DiagnosticsManager Test Suite", function () {
7070
this.timeout(60 * 1000 * 5); // Allow up to 5 minutes for build
7171

7272
let workspaceContext: WorkspaceContext;
@@ -287,7 +287,14 @@ suite("DiagnosticsManager Test Suite", function () {
287287
[funcUri.fsPath]: [expectedFuncErrorDiagnostic], // Check parsed for other file
288288
}),
289289
() => {
290-
test("Parses related information", async () => {
290+
test("Parses related information", async function () {
291+
if (
292+
workspaceContext.globalToolchainSwiftVersion.isLessThan(
293+
new Version(6, 1, 0)
294+
)
295+
) {
296+
this.skip();
297+
}
291298
const diagnostic = assertHasDiagnostic(mainUri, expectedMacroDiagnostic);
292299
// Should have parsed related note
293300
assert.equal(diagnostic.relatedInformation?.length, 1);

0 commit comments

Comments
 (0)