Skip to content

Commit 9536e5e

Browse files
committed
Shorter socket name
1 parent 278dcfa commit 9536e5e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.vscode-test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const path = require("path");
1818
const isCIBuild = process.env["CI"] === "1";
1919
const isFastTestRun = process.env["FAST_TEST_RUN"] === "1";
2020

21+
const dataDir = process.env["VSCODE_DATA_DIR"];
22+
2123
// "env" in launch.json doesn't seem to work with vscode-test
2224
const isDebugRun = !(process.env["_"] ?? "").endsWith("node_modules/.bin/vscode-test");
2325

@@ -36,7 +38,7 @@ module.exports = defineConfig({
3638
"--disable-crash-reporter",
3739
"--disable-workspace-trust",
3840
"--disable-telemetry",
39-
],
41+
].concat(dataDir ? ["--user-data-dir", dataDir] : []),
4042
mocha: {
4143
ui: "tdd",
4244
color: true,
@@ -65,7 +67,7 @@ module.exports = defineConfig({
6567
"--disable-crash-reporter",
6668
"--disable-workspace-trust",
6769
"--disable-telemetry",
68-
],
70+
].concat(dataDir ? ["--user-data-dir", dataDir] : []),
6971
mocha: {
7072
ui: "tdd",
7173
color: true,

docker/test-macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ npm run package
7777

7878
# Need to set proxy to download VS Code
7979
export npm_config_https_proxy="$HTTPS_PROXY"
80-
NO_PROXY="*" CI=1 FAST_TEST_RUN=1 npm run coverage -- --coverage-output "$PWD/coverage"
80+
VSCODE_DATA_DIR="$PWD/ud" CI=1 FAST_TEST_RUN=1 npm run coverage -- --coverage-output "$PWD/coverage"

0 commit comments

Comments
 (0)