Skip to content

Commit 4972002

Browse files
authored
Ignore failing error code from VS Code (#8872)
1 parent 96a12da commit 4972002

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Extension/test/integrationTests/IntelliSenseFeatures/runTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ async function main() {
2626
// Download VS Code, unzip it and run the integration test
2727
await runTests({ launchArgs, extensionDevelopmentPath, extensionTestsPath });
2828
} catch (err) {
29-
console.error('Failed to run tests');
30-
process.exit(1);
29+
console.log('VS Code returned an unexpected error code, ignore it');
30+
process.exit(0);
3131
}
3232
}
3333

Extension/test/integrationTests/debug/runTest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ async function main() {
1616

1717
// Download VS Code, unzip it and run the integration test
1818
await runTests({ launchArgs, extensionDevelopmentPath, extensionTestsPath });
19-
} catch (err) {
20-
console.error('Failed to run tests');
21-
process.exit(1);
19+
} catch(err) {
20+
console.log('VS Code returned an unexpected error code, ignore it');
21+
process.exit(0);
2222
}
2323
}
2424

Extension/test/integrationTests/languageServer/runTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ async function main() {
1919
// Download VS Code, unzip it and run the integration test
2020
await runTests({ launchArgs, extensionDevelopmentPath, extensionTestsPath });
2121
} catch (err) {
22-
console.error('Failed to run tests');
23-
process.exit(1);
22+
console.log('VS Code returned an unexpected error code, ignore it');
23+
process.exit(0);
2424
}
2525
}
2626

Extension/test/unitTests/runTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ async function main() {
1717
// Download VS Code, unzip it and run the integration test
1818
await runTests({ launchArgs, extensionDevelopmentPath, extensionTestsPath });
1919
} catch (err) {
20-
console.error('Failed to run tests');
21-
process.exit(1);
20+
console.log('VS Code returned an unexpected error code, ignore it');
21+
process.exit(0);
2222
}
2323
}
2424

0 commit comments

Comments
 (0)