-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: backward compatible api for tty #15235
Conversation
@@ -0,0 +1,26 @@ | |||
'use strict'; | |||
const assert = require('assert'); | |||
const common = require('../common'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this should be the first module to be required.
const assert = require('assert'); | ||
const common = require('../common'); | ||
|
||
const {WriteStream, ReadStream} = require('tty'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: space after {
and before }
. ReadStream
doesn't seem to be used in the test.
@lpinca should be all fixed :) |
@gergelyke seems like the test is constantly failing. Please take another look. |
@BridgeAR can you help me what's the exact cause of the failure? cannot really find it in the logs :/ |
this is the error message I get locally:
seems unrelated to my changes |
@gergelyke this is the error
Try to run the tests again. They should work properly. |
Ahh, had to run |
still the same issue :/
@trevnorris any chance you have a clue what could go wrong? |
@gergelyke try to manually delete the test folders. See #13582. |
That helped, thanks. However, I don't really understand the problem here. Based on the libuv docs (http://docs.libuv.org/en/v1.x/tty.html#c.uv_tty_init), the integer should be either 0, 1 or 2. Any idea why it fails? |
@@ -0,0 +1,26 @@ | |||
'use strict'; | |||
const common = require('../common'); | |||
const assert = require('assert'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove this as it seems to be no longer used.
@lpinca would you be so kind and re-approve? |
Still LGTM but it would be nice if there were more approval. |
PR-URL: nodejs#15235 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Landed in 750c080 |
PR-URL: #15235 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
PR-URL: nodejs/node#15235 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
PR-URL: nodejs/node#15235 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
PR-URL: #15235 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
PR-URL: #15235 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
tty