Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: remove tests that require the Internet in test-dns-lookup
  • Loading branch information
Masashi Hirano committed Aug 13, 2018
commit 116f6eb2a22288d3d9eb1f835f564cda1552b405
15 changes: 0 additions & 15 deletions test/parallel/test-dns-lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,6 @@ common.expectsError(() => {
});
assert.deepStrictEqual(res, { address: '127.0.0.1', family: 4 });

res = await dnsPromises.lookup(addresses.INET4_HOST, {
hints: 0,
family: 4,
all: false
});
assert.strictEqual(res.family, 4);

res = await dnsPromises.lookup(addresses.INET4_HOST, {
hints: 0,
family: 4,
all: true
});
assert.ok(res.length > 0);
res.forEach((obj) => { assert.strictEqual(obj.family, 4); });

assert.rejects(
dnsPromises.lookup(addresses.INVALID_HOST, {
hints: 0,
Expand Down