X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/76e8998d9326da7d99bcf083bd7234d62c2af63c..d1327f9456b561c059c18c76f63391728ce1780d:/services/arv-git-httpd/server_test.go diff --git a/services/arv-git-httpd/server_test.go b/services/arv-git-httpd/server_test.go index 2d1aeb7849..ea8dc045f9 100644 --- a/services/arv-git-httpd/server_test.go +++ b/services/arv-git-httpd/server_test.go @@ -66,7 +66,7 @@ func (s *GitSuite) TestNoPermission(c *check.C) { func (s *GitSuite) TestExpiredToken(c *check.C) { for _, repo := range []string{"active/foo.git", "active/foo/.git"} { err := s.RunGit(c, expiredToken, "fetch", repo) - c.Assert(err, check.ErrorMatches, `.* 500 while accessing.*`) + c.Assert(err, check.ErrorMatches, `.* (500 while accessing|requested URL returned error: 500).*`) } } @@ -80,7 +80,7 @@ func (s *GitSuite) TestInvalidToken(c *check.C) { func (s *GitSuite) TestShortToken(c *check.C) { for _, repo := range []string{"active/foo.git", "active/foo/.git"} { err := s.RunGit(c, "s3cr3t", "fetch", repo) - c.Assert(err, check.ErrorMatches, `.* 500 while accessing.*`) + c.Assert(err, check.ErrorMatches, `.* (500 while accessing|requested URL returned error: 500).*`) } }