| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -179,7 +179,12 @@ TEST(function test_lookup_all_ipv6(done) { | |||
| 179 | 179 | ||
| 180 | 180 | TEST(function test_lookupservice_ip_ipv6(done) { | |
| 181 | 181 | var req = dns.lookupService('::1', 80, function(err, host, service) { | |
| 182 | - if (err) throw err; | ||
| 182 | + if (err) { | ||
| 183 | + // Not skipping the test, rather checking an alternative result, | ||
| 184 | + // i.e. that ::1 may not be configured (e.g. in /etc/hosts) | ||
| 185 | + assert.strictEqual(err.code, 'ENOTFOUND'); | ||
| 186 | + return done(); | ||
| 187 | + } | ||
| 183 | 188 | assert.equal(typeof host, 'string'); | |
| 184 | 189 | assert(host); | |
| 185 | 190 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments