X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7bf0bc0355fde5829644df8557990cd2353d92b6..128c2b5e228e1821384064ec50604a1463c29898:/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).*`) } }