Uh oh!
There was an error while loading. Please reload this page.
test: Improved tests in test-os - #8606
Conversation
mcollina
commented
Sep 17, 2016
Can you please shorten the commit message and include the name of the test you are changing? |
mcollina
commented
Sep 17, 2016
delvedor
commented
Sep 17, 2016
Done! |
mcollina
commented
Sep 17, 2016
https://ci.nodejs.org/job/node-test-commit-arm/5000/nodes=ubuntu1604-arm64/ failed. Seems highly unrelated. |
addaleax
commented
Sep 17, 2016
That failure looks more like a build problem that might be fixed by just cleaning up on the build machine? /cc @nodejs/build |
There was a problem hiding this comment.
These could be, for example, assert.strictEqual(typeof value, 'string');.
There was a problem hiding this comment.
This should also check for null.
There was a problem hiding this comment.
Sure, originally I wrote the not null test here, but since typeof null === 'object' I thought the is.object with this check was a nonsense.
Anyhow, now I added it again, let me know if something else is missing :)
Fishrock123
left a comment
There was a problem hiding this comment.
See @cjihrig's comments
jbergstroem
commented
Sep 17, 2016
Cleaning up the host now. |
mcollina
left a comment
There was a problem hiding this comment.
LGTM, can you please squash the commits?
Moved from var to const. Moved from .equal to .strictEqual. Added more checks about the type of the returned values.
imyller
commented
Sep 20, 2016
imyller
commented
Sep 20, 2016
@Fishrock123 Could you revise your review. I think the issues mentioned have been addressed. |
imyller
commented
Sep 21, 2016
Any objections to start landing this? I see that there are four LGTMs for |
jasnell
commented
Sep 21, 2016
Go for it! |
I'll start landing this:
|
Moved from var to const. Moved from .equal to .strictEqual. Added more checks about the type of the returned values. PR-URL: nodejs#8606 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
imyller
commented
Sep 21, 2016
Moved from var to const. Moved from .equal to .strictEqual. Added more checks about the type of the returned values. PR-URL: #8606 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Checklist
make -j4 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
test
Affected test
test-osDescription of change
Part of code & learn.
Cc: @mcollina