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 <trev.norris@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
Junliang Yan authored and jasnell committed Oct 28, 2015
1 parent bc2120c commit 9e05af7
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 9e05af7

Please sign in to comment.