From 088dfce77702e0027fd025afc53a28825ae6c48d Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 4 Nov 2020 11:57:08 -0800 Subject: [PATCH] test: fix error in test/internet/test-dns.js Refs: https://github.com/nodejs/node/pull/35466#issuecomment-721936009 PR-URL: https://github.com/nodejs/node/pull/35969 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen Reviewed-By: Antoine du Hamel --- test/internet/test-dns.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/internet/test-dns.js b/test/internet/test-dns.js index 2bf6c22dfc43e5..14a26c873f17fe 100644 --- a/test/internet/test-dns.js +++ b/test/internet/test-dns.js @@ -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);