Skip to content

Commit

Permalink
test: fix error in test/internet/test-dns.js
Browse files Browse the repository at this point in the history
Refs: nodejs#35466 (comment)

PR-URL: nodejs#35969
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
Trott committed Nov 5, 2020
1 parent 2b985a2 commit 088dfce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/internet/test-dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ TEST(function test_resolveSoa_failure(done) {

TEST(async function test_resolveCaa(done) {
function validateResult(result) {
assert.ok(Array.isArray(result[0]));
assert.ok(Array.isArray(result),
`expected array, got ${util.inspect(result)}`);
assert.strictEqual(result.length, 1);
assert.strictEqual(typeof result[0].critical, 'number');
assert.strictEqual(result[0].critical, 0);
Expand Down

0 comments on commit 088dfce

Please sign in to comment.