diff options
Diffstat (limited to 'deadlinks_test.go')
| -rw-r--r-- | deadlinks_test.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/deadlinks_test.go b/deadlinks_test.go index c93e384..c219aa0 100644 --- a/deadlinks_test.go +++ b/deadlinks_test.go @@ -97,8 +97,9 @@ func TestDeadLinks_Scan(t *testing.T) { Link: testUrl + `/brokenPage`, Code: http.StatusNotFound, }, { - Link: `http://127.0.0.1:abc`, - Code: deadlinks.StatusBadLink, + Link: `http://127.0.0.1:abc`, + Error: `parse "http://127.0.0.1:abc": invalid port ":abc" after host`, + Code: deadlinks.StatusBadLink, }, { Link: `http:/127.0.0.1:11836`, Error: `Head "http:/127.0.0.1:11836": http: no Host in request URL`, @@ -135,8 +136,9 @@ func TestDeadLinks_Scan(t *testing.T) { Link: testUrl + `/brokenPage`, Code: http.StatusNotFound, }, { - Link: `http://127.0.0.1:abc`, - Code: deadlinks.StatusBadLink, + Link: `http://127.0.0.1:abc`, + Error: `parse "http://127.0.0.1:abc": invalid port ":abc" after host`, + Code: deadlinks.StatusBadLink, }, { Link: `http:/127.0.0.1:11836`, Error: `Head "http:/127.0.0.1:11836": http: no Host in request URL`, |
