From 553cd8544197cee41a1074962b00177e4a36f81b Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 11 Apr 2021 07:30:50 -0700 Subject: [PATCH] test: fix test-https-agent-additional-options.js `value` was always being assigned to an `undefined` property of an Array. Thus, the assertions that depended on `value` being defined were never being checked. Assign `value` the correct...er...value. PR-URL: https://github.com/nodejs/node/pull/38202 Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- test/parallel/test-https-agent-additional-options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-https-agent-additional-options.js b/test/parallel/test-https-agent-additional-options.js index 2b5446b9e3d194..ba561e263e7c9a 100644 --- a/test/parallel/test-https-agent-additional-options.js +++ b/test/parallel/test-https-agent-additional-options.js @@ -61,8 +61,8 @@ function variations(iter, port, cb) { server.close(); } else { // Save `value` for check the next time. - value = next.value.val; const [key, val] = next.value; + value = val; https.get({ ...getBaseOptions(port), [key]: val }, variations(iter, port, cb)); }