diff options
Diffstat (limited to 'brokenlinks/brokenlinks_test.go')
| -rw-r--r-- | brokenlinks/brokenlinks_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/brokenlinks/brokenlinks_test.go b/brokenlinks/brokenlinks_test.go index f957ae3..b49bcc5 100644 --- a/brokenlinks/brokenlinks_test.go +++ b/brokenlinks/brokenlinks_test.go @@ -264,6 +264,10 @@ func TestScan(t *testing.T) { Link: `http:/127.0.0.1:11836`, Error: `Get "http:/127.0.0.1:11836": http: no Host in request URL`, Code: brokenlinks.StatusBadLink, + }, { + Link: `https://domain`, + Error: `Get "https://domain": dial tcp: lookup domain: no such host`, + Code: 700, }, }, testUrl + `/broken.html`: []brokenlinks.Broken{ |
