From fb68ef2e74a24c5d177b0b95d075b15d4a498230 Mon Sep 17 00:00:00 2001 From: Mark Abel Date: Thu, 23 Aug 2018 11:15:01 -0700 Subject: [PATCH] lib: added common.restoreStderr(); to end of file Fixes: https://github.com/nodejs/node/issues/22472 Co-authored-by: Denys Otrishko PR-URL: https://github.com/nodejs/node/pull/22487 Reviewed-By: Luigi Pinca Reviewed-By: Denys Otrishko Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell --- test/parallel/test-util-log.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-util-log.js b/test/parallel/test-util-log.js index 4d81fc8f7a4255..3de79b835d85a3 100644 --- a/test/parallel/test-util-log.js +++ b/test/parallel/test-util-log.js @@ -25,6 +25,7 @@ const { hijackStdout, hijackStderr, restoreStdout, + restoreStderr, } = require('../common/hijackstdio'); const assert = require('assert'); const util = require('util'); @@ -63,3 +64,4 @@ tests.forEach(function(test) { assert.strictEqual(process.stdout.writeTimes, tests.length); restoreStdout(); +restoreStderr();