Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 5f2bb03

Browse files
committed
fixed windows failed test: "296 FAIL: receive_pack_test.go:36: ReceivePackSuite.TearDownTest"
1 parent 3388cb7 commit 5f2bb03

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plumbing/transport/file/receive_pack_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ func (s *ReceivePackSuite) TestNonExistentCommand(c *C) {
7070
cmd := "/non-existent-git"
7171
client := NewClient(cmd, cmd)
7272
session, err := client.NewReceivePackSession(s.Endpoint, s.EmptyAuth)
73-
c.Assert(err, ErrorMatches, ".*no such file or directory.*")
73+
c.Assert(err, ErrorMatches, ".*(no such file or directory.*|.*file does not exist)*.")
7474
c.Assert(session, IsNil)
7575
}

plumbing/transport/test/receive_pack.go

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func (s *ReceivePackSuite) TestAdvertisedReferencesNotExists(c *C) {
6161

6262
func (s *ReceivePackSuite) TestCallAdvertisedReferenceTwice(c *C) {
6363
r, err := s.Client.NewReceivePackSession(s.Endpoint, s.EmptyAuth)
64+
defer func() { c.Assert(r.Close(), IsNil) }()
6465
c.Assert(err, IsNil)
6566
ar1, err := r.AdvertisedReferences()
6667
c.Assert(err, IsNil)

0 commit comments

Comments
 (0)