Skip to content

Commit 5b5e272

Browse files
TrottBethGriggs
authored andcommittedSep 21, 2021
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 <rlau@redhat.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 2a41530 commit 5b5e272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/internet/test-dns.js

+1-1
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)
Please sign in to comment.