diff --git a/http/download_test.go b/http/download_test.go index 8e40bbd1..21b13ef4 100644 --- a/http/download_test.go +++ b/http/download_test.go @@ -115,7 +115,7 @@ func (s *DownloaderSuite) TestDownload404(c *C) { } func (s *DownloaderSuite) TestDownloadConnectError(c *C) { - c.Assert(s.d.Download(s.ctx, "http://nosuch.localhost/", s.tempfile.Name()), + c.Assert(s.d.Download(s.ctx, "http://nosuch.host/", s.tempfile.Name()), ErrorMatches, ".*no such host") } @@ -138,7 +138,7 @@ func (s *DownloaderSuite) TestGetLength404(c *C) { } func (s *DownloaderSuite) TestGetLengthConnectError(c *C) { - _, err := s.d.GetLength(s.ctx, "http://nosuch.localhost/") + _, err := s.d.GetLength(s.ctx, "http://nosuch.host/") c.Assert(err, ErrorMatches, ".*no such host") }