From 4ad8e83a3deefc23a548dc325183b641d51cf5e5 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 c92b17641d0b58..b596fdcc169d55 100644 --- a/test/parallel/test-https-agent-additional-options.js +++ b/test/parallel/test-https-agent-additional-options.js @@ -63,8 +63,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)); }