Skip to content

Commit

Permalink
test: remove tests that require the Internet in test-dns-lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Masashi Hirano committed Aug 13, 2018
1 parent 3a2cfcc commit 116f6eb
Showing 1 changed file with 0 additions and 15 deletions.
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

0 comments on commit 116f6eb

Please sign in to comment.