Skip to content

Commit 9d8d752

Browse files
Junliang Yanrvagg
Junliang Yan
authored andcommitted
test: print helpful err msg on test-dns-ipv6.js
The test sometimes fail on an assertion but no useful error message was generated for debugging. Modify the test to generate useful debugging message. PR-URL: #3501 Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 60de9f8 commit 9d8d752

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/internet/test-dns-ipv6.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ TEST(function test_lookup_all_ipv6(done) {
165165
assert.ok(ips.length > 0);
166166

167167
ips.forEach(function(ip) {
168-
assert.ok(isIPv6(ip.address));
168+
assert.ok(isIPv6(ip.address),
169+
'Invalid IPv6: ' + ip.address.toString());
169170
assert.strictEqual(ip.family, 6);
170171
});
171172

0 commit comments

Comments
 (0)