5416: Fix overly sensitive error message regexp.
authorTom Clegg <tom@curoverse.com>
Wed, 25 Mar 2015 17:48:39 +0000 (13:48 -0400)
committerTom Clegg <tom@curoverse.com>
Wed, 25 Mar 2015 17:48:39 +0000 (13:48 -0400)
services/arv-git-httpd/server_test.go

index 3971d17f9c181819907de8f738da3958581dd721..40f0128174cc9fc22c84632666fa70429e1ddf09 100644 (file)
@@ -57,7 +57,7 @@ func (s *IntegrationSuite) TestNonexistent(c *check.C) {
        // Spectator token
        os.Setenv("ARVADOS_API_TOKEN", "zw2f4gwx8hw8cjre7yp6v1zylhrhn3m5gvjq73rtpwhmknrybu")
        err := s.runGit(c, "fetch", "thisrepodoesnotexist.git")
-       c.Assert(err, check.ErrorMatches, `.* not found:.*`)
+       c.Assert(err, check.ErrorMatches, `.* not found.*`)
 }
 
 func (s *IntegrationSuite) TestNoPermission(c *check.C) {
@@ -65,7 +65,7 @@ func (s *IntegrationSuite) TestNoPermission(c *check.C) {
        os.Setenv("ARVADOS_API_TOKEN", "4kg6k6lzmp9kj4cpkcoxie964cmvjahbt4fod9zru44k4jqdmi")
        for _, repo := range []string{"foo.git", "foo/.git"} {
                err := s.runGit(c, "fetch", repo)
-               c.Assert(err, check.ErrorMatches, `.* not found:.*`)
+               c.Assert(err, check.ErrorMatches, `.* not found.*`)
        }
 }