test: Improved tests in test-os#8606
test: Improved tests in test-os#8606delvedor wants to merge 1 commit intonodejs:masterfrom delvedor:test-os
Conversation
|
Can you please shorten the commit message and include the name of the test you are changing? |
|
Done! |
|
https://ci.nodejs.org/job/node-test-commit-arm/5000/nodes=ubuntu1604-arm64/ failed. Seems highly unrelated. |
|
That failure looks more like a build problem that might be fixed by just cleaning up on the build machine? /cc @nodejs/build |
test/parallel/test-os.js
Outdated
test/parallel/test-os.js
Outdated
There was a problem hiding this comment.
These could be, for example, assert.strictEqual(typeof value, 'string');.
test/parallel/test-os.js
Outdated
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
|
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.
|
@Fishrock123 Could you revise your review. I think the issues mentioned have been addressed. |
|
Any objections to start landing this? I see that there are four LGTMs for |
|
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>
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