aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-04-28 15:38:48 +0200
committerSantiago M. Mola <santi@mola.io>2017-06-02 16:41:37 +0200
commit8670235d5eb85f9f8d7f933d9b26b7230590f6d6 (patch)
treea6ee6218b2a4035319920f478b2a86d292b21b15 /plumbing
parentfc73d79a3e1c5ed0c3f9f0e234aedaf8b65ddf38 (diff)
downloadgo-git-8670235d5eb85f9f8d7f933d9b26b7230590f6d6.tar.gz
test: fix test for error checking in Windows
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/transport/file/upload_pack_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plumbing/transport/file/upload_pack_test.go b/plumbing/transport/file/upload_pack_test.go
index f013683..f953e02 100644
--- a/plumbing/transport/file/upload_pack_test.go
+++ b/plumbing/transport/file/upload_pack_test.go
@@ -74,6 +74,7 @@ func (s *UploadPackSuite) TestNonExistentCommand(c *C) {
cmd := "/non-existent-git"
client := NewClient(cmd, cmd)
session, err := client.NewUploadPackSession(s.Endpoint, s.EmptyAuth)
- c.Assert(err, ErrorMatches, ".*no such file or directory.*")
+ // Error message is OS-dependant, so do a broad check
+ c.Assert(err, ErrorMatches, ".*file.*")
c.Assert(session, IsNil)
}