From 8521128ca03b1332b120d818d5a021f0c813b593 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 14 Jun 2019 11:46:06 -0400 Subject: [PATCH] test: fix NODE_OPTIONS feature check The configuration variable being tested is `true` if Node.js was compiled without support for NODE_OPTIONS. --- test/sequential/test-set-http-max-http-headers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sequential/test-set-http-max-http-headers.js b/test/sequential/test-set-http-max-http-headers.js index 657f9948be149d..81d9d308b9b79d 100644 --- a/test/sequential/test-set-http-max-http-headers.js +++ b/test/sequential/test-set-http-max-http-headers.js @@ -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` });