Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b39dcde

Browse filesBrowse files
daeyeonRafaelGSS
authored andcommitted
test: remove a snapshot blob from test-inspect-address-in-use.js
This removes a snapshot blob generated by `test/parallel/test-inspect-address-in-use.js`. Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com> PR-URL: #45132 Fixes: #45017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent 3a26347 commit b39dcde
Copy full SHA for b39dcde

File tree

Expand file treeCollapse file tree

1 file changed

+8
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-3
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-inspect-address-in-use.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-inspect-address-in-use.js
+8-3Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ common.skipIfInspectorDisabled();
55
const { spawnSync } = require('child_process');
66
const { createServer } = require('http');
77
const assert = require('assert');
8+
const tmpdir = require('../common/tmpdir');
89
const fixtures = require('../common/fixtures');
910
const entry = fixtures.path('empty.js');
1011
const { Worker } = require('worker_threads');
@@ -21,10 +22,10 @@ function testOnServerListen(fn) {
2122
server.listen(0, '127.0.0.1');
2223
}
2324

24-
function testChildProcess(getArgs, exitCode) {
25+
function testChildProcess(getArgs, exitCode, options) {
2526
testOnServerListen((server) => {
2627
const { port } = server.address();
27-
const child = spawnSync(process.execPath, getArgs(port));
28+
const child = spawnSync(process.execPath, getArgs(port), options);
2829
const stderr = child.stderr.toString().trim();
2930
const stdout = child.stdout.toString().trim();
3031
console.log('[STDERR]');
@@ -40,8 +41,12 @@ function testChildProcess(getArgs, exitCode) {
4041
});
4142
}
4243

44+
tmpdir.refresh();
45+
4346
testChildProcess(
44-
(port) => [`--inspect=${port}`, '--build-snapshot', entry], 0);
47+
(port) => [`--inspect=${port}`, '--build-snapshot', entry], 0,
48+
{ cwd: tmpdir.path });
49+
4550
testChildProcess(
4651
(port) => [`--inspect=${port}`, entry], 0);
4752

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.