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'); })); }));