Skip to content

Commit

Permalink
test: fix dns/promises test
Browse files Browse the repository at this point in the history
  • Loading branch information
shisama committed May 6, 2020
1 parent 4bfbeff commit 44dea35
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/parallel/test-dns-setservers-type-check.js
Expand Up @@ -89,14 +89,12 @@ const promiseResolver = new dns.promises.Resolver();
// This test for 'dns/promises'
{
const {
setServers,
resolve
setServers
} = require('dns/promises');

// This should not throw any error.
(async () => {
const localhost = await resolve('localhost');
setServers(localhost);
setServers([ '127.0.0.1' ]);
})();

[
Expand Down

0 comments on commit 44dea35

Please sign in to comment.