Skip to content

Commit 48124b1

Browse files
committed
Do not hardcode VS Code version in integration tests
1 parent 65bd965 commit 48124b1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/runFeatureTests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ async function main() {
1717
const extensionTestsPath = path.resolve(__dirname, './featureTests/index');
1818

1919
// Download VS Code, unzip it and run the integration test
20-
await runTests({ version: "1.65.0", extensionDevelopmentPath, extensionTestsPath, launchArgs: ['-n', '--verbose'] });
20+
const exitCode = await runTests({ extensionDevelopmentPath, extensionTestsPath, launchArgs: ['-n', '--verbose'] });
21+
22+
process.exit(exitCode);
2123
} catch (err) {
2224
console.error(err);
2325
console.error('Failed to run tests');

test/runIntegrationTests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ async function main() {
4343
}
4444

4545
// Download VS Code, unzip it and run the integration test
46-
await runTests({ version: "1.65.0", extensionDevelopmentPath, extensionTestsPath, launchArgs: [workspacePath, '-n', '--verbose'], extensionTestsEnv: process.env });
46+
const exitCode = await runTests({ extensionDevelopmentPath, extensionTestsPath, launchArgs: [workspacePath, '-n', '--verbose'], extensionTestsEnv: process.env });
47+
48+
process.exit(exitCode);
4749
} catch (err) {
4850
console.error(err);
4951
console.error('Failed to run tests');

0 commit comments

Comments
 (0)