summaryrefslogtreecommitdiff
path: root/cli/tests/node_compat/test/parallel/test-net-options-lookup.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/node_compat/test/parallel/test-net-options-lookup.js')
-rw-r--r--cli/tests/node_compat/test/parallel/test-net-options-lookup.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/tests/node_compat/test/parallel/test-net-options-lookup.js b/cli/tests/node_compat/test/parallel/test-net-options-lookup.js
index af424fd3d..d3ca0451c 100644
--- a/cli/tests/node_compat/test/parallel/test-net-options-lookup.js
+++ b/cli/tests/node_compat/test/parallel/test-net-options-lookup.js
@@ -43,7 +43,11 @@ function connectDoesNotThrow(input) {
{
// Verify that an error is emitted when an invalid address family is returned.
const s = connectDoesNotThrow((host, options, cb) => {
- cb(null, '127.0.0.1', 100);
+ if (options.all) {
+ cb(null, [{ address: '127.0.0.1', family: 100 }]);
+ } else {
+ cb(null, '127.0.0.1', 100);
+ }
});
s.on('error', common.expectsError({