test: fix NODE_OPTIONS feature check

The configuration variable being tested is `true` if Node.js was
compiled without support for NODE_OPTIONS.

PR-URL: https://github.com/nodejs/node/pull/28225
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Richard Lau
2019-06-14 11:46:06 -04:00
committed by Daniel Bevenius
parent 215fd083ea
commit 9bead0ce85

View File

@@ -60,7 +60,7 @@ parsers.forEach((parser) => {
});
// Next, repeat the same checks using NODE_OPTIONS if it is supported.
if (process.config.variables.node_without_node_options) {
if (!process.config.variables.node_without_node_options) {
const env = Object.assign({}, process.env, {
NODE_OPTIONS: `--http-parser=${parser} --max-http-header-size=1024`
});