Skip to content

Commit 44dea35

Browse files
committed
test: fix dns/promises test
1 parent 4bfbeff commit 44dea35

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/parallel/test-dns-setservers-type-check.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,12 @@ const promiseResolver = new dns.promises.Resolver();
8989
// This test for 'dns/promises'
9090
{
9191
const {
92-
setServers,
93-
resolve
92+
setServers
9493
} = require('dns/promises');
9594

9695
// This should not throw any error.
9796
(async () => {
98-
const localhost = await resolve('localhost');
99-
setServers(localhost);
97+
setServers([ '127.0.0.1' ]);
10098
})();
10199

102100
[

0 commit comments

Comments
 (0)