node/test/parallel/test-stdout-stderr-write.js
Robert Nagy a8a86387fa tty: enable buffering
HWM was set to 0 which would cause e.g. stdout.write(...) to
always return false.

Refs: https://github.com/nodejs/node/pull/39246

PR-URL: https://github.com/nodejs/node/pull/39253
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2021-07-07 14:50:47 +02:00

9 lines
227 B
JavaScript

'use strict';
require('../common');
const assert = require('assert');
// https://github.com/nodejs/node/pull/39246
assert.strictEqual(process.stderr.write('asd'), true);
assert.strictEqual(process.stdout.write('asd'), true);