mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: fix internet/test-dns
internet/test-dns is failing due to a typo that inadvertently sends a boolean instead of a regular expression. PR-URL: https://github.com/nodejs/node/pull/40083 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
committed by
Node.js GitHub Bot
parent
e267467098
commit
ec555b06d0
@@ -527,7 +527,7 @@ TEST(function test_lookup_failure(done) {
|
||||
assert.ok(err instanceof Error);
|
||||
assert.strictEqual(err.code, dns.NOTFOUND);
|
||||
assert.strictEqual(err.code, 'ENOTFOUND');
|
||||
assert.doesNotMatch(err.message, !/ENOENT/);
|
||||
assert.doesNotMatch(err.message, /ENOENT/);
|
||||
assert.ok(err.message.includes(addresses.NOT_FOUND));
|
||||
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user