diff --git a/test/pseudo-tty/test-tty-stdout-end.js b/test/pseudo-tty/test-tty-stdout-end.js index 2ec7ca9114db6f..a19682a36df7a6 100644 --- a/test/pseudo-tty/test-tty-stdout-end.js +++ b/test/pseudo-tty/test-tty-stdout-end.js @@ -1,10 +1,4 @@ 'use strict'; -const common = require('../common'); - -process.on('uncaughtException', common.expectsError({ - code: 'ERR_STDOUT_CLOSE', - type: Error, - message: 'process.stdout cannot be closed' -})); +require('../common'); process.stdout.end();