-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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: make tests pass when configured --without-ssl #11631
Changes from all commits
5d8519a
f6a0027
c9c6c2b
a7b0c2e
4084f4b
f6d7cb0
b440006
3addfd0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
'use strict'; | ||
|
||
const common = require('../../common'); | ||
if (!common.hasCrypto) { | ||
common.skip('missing crypto'); | ||
process.exit(0); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Existing uses of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll take another look at this. Just returning does not work in this case but I'll try and dig a little further. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this case I don't think we can just return as that would cause the tests that require |
||
} | ||
const assert = require('assert'); | ||
const binding = require(`./build/${common.buildType}/binding`); | ||
const bytes = new Uint8Array(1024); | ||
|
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'm kind of surprised this works. gyp generally doesn't like it when there are no source files to compile.