summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/pseudo-tty/test-tty-stdout-end.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/pseudo-tty/test-tty-stdout-end.js b/test/pseudo-tty/test-tty-stdout-end.js
index 2ec7ca9114..a19682a36d 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();