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
fixup! fixup! test: increase coverage for dns.promises.lookup()
  • Loading branch information
Trott committed Apr 19, 2019
commit 15a200520120ee89c462b2dca46fbd079e4d9a07
9 changes: 2 additions & 7 deletions test/parallel/test-dns-lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,5 @@ dns.lookup('example.com', common.mustCall((error, result, addressType) => {
tickValue = 1;

// Should fail due to stub.
dnsPromises.lookup('example.com').then(
common.mustNotCall(),
common.mustCall((error) => {
assert.strictEqual(error.code, 'ENOMEM');
assert.strictEqual(error.hostname, 'example.com');
})
);
assert.rejects(dnsPromises.lookup('example.com'),
{ code: 'ENOMEM', hostname: 'example.com' });