Skip to content

Commit

Permalink
test: fix internet/test-dns
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Trott authored and BethGriggs committed Sep 21, 2021
1 parent 2a41530 commit 5b5e272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/internet/test-dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5b5e272

Please sign in to comment.