Skip to content

Commit

Permalink
test: print helpful err msg on test-dns-ipv6.js
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Junliang Yan authored and rvagg committed Oct 26, 2015
1 parent 60de9f8 commit 9d8d752
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/internet/test-dns-ipv6.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ TEST(function test_lookup_all_ipv6(done) {
assert.ok(ips.length > 0);

ips.forEach(function(ip) {
assert.ok(isIPv6(ip.address));
assert.ok(isIPv6(ip.address),
'Invalid IPv6: ' + ip.address.toString());
assert.strictEqual(ip.family, 6);
});

Expand Down

0 comments on commit 9d8d752

Please sign in to comment.