Skip to content

Commit 796007b

Browse files
Trotttargos
authored andcommitted
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: #38202 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent e2c2f2b commit 796007b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-https-agent-additional-options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ function variations(iter, port, cb) {
6161
server.close();
6262
} else {
6363
// Save `value` for check the next time.
64-
value = next.value.val;
6564
const [key, val] = next.value;
65+
value = val;
6666
https.get({ ...getBaseOptions(port), [key]: val },
6767
variations(iter, port, cb));
6868
}

0 commit comments

Comments
 (0)