Unverified Commit 21e69d12 authored by Bartosz Sosnowski's avatar Bartosz Sosnowski Committed by Michaël Zasso
Browse files

test: fix test-tty-get-color-depth

If getTTYfd returns 0, and stdin is not writable (like on Windows),
trying to create WriteStream will fail. This commit fixes that by
skipping fd 0.

PR-URL: https://github.com/nodejs/node/pull/18478


Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarRuben Bridgewater <ruben@bridgewater.de>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 441175c2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment