Skip to content

Commit

Permalink
lib: added common.restoreStderr(); to end of file
Browse files Browse the repository at this point in the history
Fixes: #22472
Co-authored-by: Denys Otrishko <shishugi@gmail.com>

PR-URL: #22487
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
abelmark authored and addaleax committed Sep 19, 2018
1 parent 19ad6b8 commit ed35df7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-util-log.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const {
hijackStdout,
hijackStderr,
restoreStdout,
restoreStderr,
} = require('../common/hijackstdio');
const assert = require('assert');
const util = require('util');
Expand Down Expand Up @@ -63,3 +64,4 @@ tests.forEach(function(test) {
assert.strictEqual(process.stdout.writeTimes, tests.length);

restoreStdout();
restoreStderr();

1 comment on commit ed35df7

@mscdex
Copy link
Contributor

@mscdex mscdex commented on ed35df7 Sep 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW this should have had a test: commit message prefix and not lib:

Please sign in to comment.