diff --git a/test/parallel/test-dns-regress-7070.js b/test/parallel/test-dns-regress-7070.js index 25cf60cf6a19f2..eb939b47559a9d 100644 --- a/test/parallel/test-dns-regress-7070.js +++ b/test/parallel/test-dns-regress-7070.js @@ -4,5 +4,7 @@ const assert = require('assert'); const dns = require('dns'); // Should not raise assertion error. Issue #7070 -assert.throws(() => dns.resolveNs([])); // bad name -assert.throws(() => dns.resolveNs('')); // bad callback +assert.throws(() => dns.resolveNs([]), // bad name + /^Error: "name" argument must be a string$/); +assert.throws(() => dns.resolveNs(''), // bad callback + /^Error: "callback" argument must be a function$/);