From 73c32d5f0b8d6445393fcb415282f2a2b93a611b Mon Sep 17 00:00:00 2001 From: treysis Date: Sat, 4 Sep 2021 21:29:45 +0200 Subject: [PATCH] dns: fix test-net-dns-lookup.js PR-URL: https://github.com/nodejs/node/pull/39987 Fixes: https://github.com/nodejs/node/issues/31566 Refs: https://github.com/nodejs/node/issues/6307 Refs: https://github.com/nodejs/node/pull/20710 Refs: https://github.com/nodejs/node/pull/38099 Reviewed-By: Antoine du Hamel Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- test/parallel/test-net-dns-lookup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-net-dns-lookup.js b/test/parallel/test-net-dns-lookup.js index 160e89faeddf21..8c7bbef128d7b1 100644 --- a/test/parallel/test-net-dns-lookup.js +++ b/test/parallel/test-net-dns-lookup.js @@ -34,7 +34,7 @@ server.listen(0, common.mustCall(function() { .on('lookup', common.mustCall(function(err, ip, type, host) { assert.strictEqual(err, null); assert.match(ip, /^(127\.0\.0\.1|::1)$/); - assert.match(type.toString, /^(4|6)$/); + assert.match(type.toString(), /^(4|6)$/); assert.strictEqual(host, 'localhost'); })); }));