X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dbebe700704e5f100eec34e531ae8e90cf9232c4..6b91e8201f24d2b4126532d809abba42a5ab959c:/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).*`) } }