diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-25 15:10:40 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-25 15:10:40 +0200 |
commit | 0f97041639b55bc4631145e2053a47a1eb8cdef0 (patch) | |
tree | 07de52218d3c0e69994c2614f7875af2635ae682 /clients/http/common_test.go | |
parent | 0fa6f26b0e6ca242088794027c0a32d01e1bc6f9 (diff) | |
download | go-git-0f97041639b55bc4631145e2053a47a1eb8cdef0.tar.gz |
clients/http: better error handling
Diffstat (limited to 'clients/http/common_test.go')
-rw-r--r-- | clients/http/common_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/http/common_test.go b/clients/http/common_test.go index d3e2c9d..287897d 100644 --- a/clients/http/common_test.go +++ b/clients/http/common_test.go @@ -28,11 +28,11 @@ func (s *SuiteCommon) TestNewHTTPError200(c *C) { } func (s *SuiteCommon) TestNewHTTPError401(c *C) { - s.testNewHTTPError(c, 401, "permanent client error.*not found.*") + s.testNewHTTPError(c, 401, "authorization required") } func (s *SuiteCommon) TestNewHTTPError404(c *C) { - s.testNewHTTPError(c, 404, "permanent client error.*not found.*") + s.testNewHTTPError(c, 404, "repository not found") } func (s *SuiteCommon) TestNewHTTPError40x(c *C) { |