Skip to content

Commit ec555b0

Browse files
Trottnodejs-github-bot
authored andcommitted
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: #40083 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Qingyu Deng <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent e267467 commit ec555b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/internet/test-dns.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ TEST(function test_lookup_failure(done) {
527527
assert.ok(err instanceof Error);
528528
assert.strictEqual(err.code, dns.NOTFOUND);
529529
assert.strictEqual(err.code, 'ENOTFOUND');
530-
assert.doesNotMatch(err.message, !/ENOENT/);
530+
assert.doesNotMatch(err.message, /ENOENT/);
531531
assert.ok(err.message.includes(addresses.NOT_FOUND));
532532

533533
done();

0 commit comments

Comments
 (0)