Merge remote-tracking branch 'origin/master' into 14484-collection-record-update
[arvados.git] / services / arv-git-httpd / gitolite_test.go
index f06b1ac97103ff55c3bbe32f8c99adbb4cc61b41..88cd221cbf8aaed87e4f91a6289e8dd02458cd90 100644 (file)
@@ -52,7 +52,7 @@ func (s *GitoliteSuite) SetUpTest(c *check.C) {
                        APIHost:  arvadostest.APIHost(),
                        Insecure: true,
                },
-               Listen:       ":0",
+               Listen:       "localhost:0",
                GitCommand:   "/usr/share/gitolite3/gitolite-shell",
                GitoliteHome: s.gitoliteHome,
                RepoRoot:     s.tmpRepoRoot,
@@ -107,5 +107,5 @@ func (s *GitoliteSuite) TestPush(c *check.C) {
 
 func (s *GitoliteSuite) TestPushUnwritable(c *check.C) {
        err := s.RunGit(c, spectatorToken, "push", "active/foo.git", "master:gitolite-push-fail")
-       c.Check(err, check.ErrorMatches, `.*HTTP code = 403.*`)
+       c.Check(err, check.ErrorMatches, `.*HTTP (code = )?403.*`)
 }