Skip to content

Commit 42f5f27

Browse files
richardlauBridgeAR
authored andcommitted
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: #28225 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 5b7b18d commit 42f5f27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/sequential/test-set-http-max-http-headers.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ parsers.forEach((parser) => {
6060
});
6161

6262
// Next, repeat the same checks using NODE_OPTIONS if it is supported.
63-
if(process.config.variables.node_without_node_options){
63+
if(!process.config.variables.node_without_node_options){
6464
constenv=Object.assign({},process.env,{
6565
NODE_OPTIONS: `--http-parser=${parser} --max-http-header-size=1024`
6666
});

0 commit comments

Comments
 (0)