diff --git a/test/parallel/test-tty-get-color-depth.js b/test/parallel/test-tty-get-color-depth.js index a5a998b6a3ab78..a4c7ffacd17f82 100644 --- a/test/parallel/test-tty-get-color-depth.js +++ b/test/parallel/test-tty-get-color-depth.js @@ -10,7 +10,7 @@ const { WriteStream } = require('tty'); // Do our best to grab a tty fd. function getTTYfd() { - const ttyFd = [0, 1, 2, 4, 5].find(tty.isatty); + const ttyFd = [1, 2, 4, 5].find(tty.isatty); if (ttyFd === undefined) { try { return openSync('/dev/tty');