Skip to content

Commit 116f6eb

Browse files
author
Masashi Hirano
committed
test: remove tests that require the Internet in test-dns-lookup
1 parent 3a2cfcc commit 116f6eb

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/parallel/test-dns-lookup.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,6 @@ common.expectsError(() => {
9797
});
9898
assert.deepStrictEqual(res, { address: '127.0.0.1', family: 4 });
9999

100-
res = await dnsPromises.lookup(addresses.INET4_HOST, {
101-
hints: 0,
102-
family: 4,
103-
all: false
104-
});
105-
assert.strictEqual(res.family, 4);
106-
107-
res = await dnsPromises.lookup(addresses.INET4_HOST, {
108-
hints: 0,
109-
family: 4,
110-
all: true
111-
});
112-
assert.ok(res.length > 0);
113-
res.forEach((obj) => { assert.strictEqual(obj.family, 4); });
114-
115100
assert.rejects(
116101
dnsPromises.lookup(addresses.INVALID_HOST, {
117102
hints: 0,

0 commit comments

Comments
 (0)