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: #35466 (comment)

PR-URL: #35969
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
Trott authored and danielleadams committed Nov 9, 2020
1 parent 8bd364a commit 23f0d0c
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 23f0d0c

Please sign in to comment.