-
Notifications
You must be signed in to change notification settings - Fork 30k
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: improve crypto.setEngine coverage to check for errors #11143
Conversation
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.
LGTM with a green CI & linter
test/parallel/test-crypto-engine.js
Outdated
}, /"id" argument should be a string/); | ||
|
||
assert.throws(function() { | ||
crypto.setEngine('/path/to/engine', 'notANumber') |
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.
Does the linter pass with these (make lint
)? We do use semicolons to end statements 😄
test/parallel/test-crypto-engine.js
Outdated
|
||
assert.throws(function() { | ||
crypto.setEngine(true) | ||
}, /"id" argument should be a string/); |
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.
You can write /^TypeError: "id" argument should be a string$/
:)
5618f04
to
d9121e9
Compare
I did the changes:
I amended the changes to the previous commit. |
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.
d9121e9
to
a82e13d
Compare
cc/ @nodejs/crypto @sam-github |
This is duplicated to #10786 and related #10865. I'm now waiting for resolve nodejs/build#596. |
PR-URL: #11143 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in ddbfdba |
PR-URL: nodejs#11143 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#11143 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#11143 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #11143 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Would require a backport PR to land on v4 |
PR-URL: #11143 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com>
test: improve crypto.setEngine test coverage to check for errors
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
N/A