GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_runner: remove stdout and stderr from error · nodejs/node@20f6fa3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/test_runner
    • runner.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/test_runner/runner.js‎

Copy file name to clipboardExpand all lines: lib/internal/test_runner/runner.js
+1-8Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,18 +233,13 @@ function runTestFile(path, root, inspectPort, filesWatcher) {
233233
runningProcesses.set(path, child);
234234

235235
let err;
236-
let stderr = '';
237236

238237
filesWatcher?.watchChildProcessModules(child, path);
239238

240239
child.on('error', (error) => {
241240
err = error;
242241
});
243242

244-
child.stderr.on('data', (data) => {
245-
stderr += data;
246-
});
247-
248243
if (isUsingInspector()) {
249244
const rl = createInterface({ input: child.stderr });
250245
rl.on('line', (line) => {
@@ -265,7 +260,7 @@ function runTestFile(path, root, inspectPort, filesWatcher) {
265260
subtest.addToReport(ast);
266261
});
267262

268-
const { 0: { 0: code, 1: signal }, 1: stdout } = await SafePromiseAll([
263+
const { 0: { 0: code, 1: signal } } = await SafePromiseAll([
269264
once(child, 'exit', { signal: t.signal }),
270265
child.stdout.toArray({ signal: t.signal }),
271266
]);
@@ -278,8 +273,6 @@ function runTestFile(path, root, inspectPort, filesWatcher) {
278273
__proto__: null,
279274
exitCode: code,
280275
signal: signal,
281-
stdout: ArrayPrototypeJoin(stdout, ''),
282-
stderr,
283276
// The stack will not be useful since the failures came from tests
284277
// in a child process.
285278
stack: undefined,

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.