Skip to content

Commit 4ad8e83

Browse files
Trottjasnell
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 09c9e5d commit 4ad8e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/parallel/test-https-agent-additional-options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ function variations(iter, port, cb) {
6363
server.close();
6464
} else {
6565
// Save `value` for check the next time.
66-
value = next.value.val;
6766
const [key, val] = next.value;
67+
value = val;
6868
https.get({ ...getBaseOptions(port), [key]: val },
6969
variations(iter, port, cb));
7070
}

0 commit comments

Comments
 (0)