aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/test/receive_pack.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-06-13 14:23:15 +0200
committerSantiago M. Mola <santi@mola.io>2017-06-13 15:39:49 +0200
commitcbbd2a9ad8ee990c79bd847b0df2823e2449ea4e (patch)
tree25905da2442b2363d0d45bba07485543e5665deb /plumbing/transport/test/receive_pack.go
parent4b2d9b42bf18556bc51434e7221927c681bce746 (diff)
downloadgo-git-cbbd2a9ad8ee990c79bd847b0df2823e2449ea4e.tar.gz
transport/internal: remove Wait function, use Close directly
Diffstat (limited to 'plumbing/transport/test/receive_pack.go')
-rw-r--r--plumbing/transport/test/receive_pack.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plumbing/transport/test/receive_pack.go b/plumbing/transport/test/receive_pack.go
index 066e684..bb1c58a 100644
--- a/plumbing/transport/test/receive_pack.go
+++ b/plumbing/transport/test/receive_pack.go
@@ -39,10 +39,10 @@ func (s *ReceivePackSuite) TestAdvertisedReferencesEmpty(c *C) {
func (s *ReceivePackSuite) TestAdvertisedReferencesNotExists(c *C) {
r, err := s.Client.NewReceivePackSession(s.NonExistentEndpoint, s.EmptyAuth)
c.Assert(err, IsNil)
- defer func() { c.Assert(r.Close(), IsNil) }()
ar, err := r.AdvertisedReferences()
c.Assert(err, Equals, transport.ErrRepositoryNotFound)
c.Assert(ar, IsNil)
+ c.Assert(r.Close(), IsNil)
r, err = s.Client.NewReceivePackSession(s.NonExistentEndpoint, s.EmptyAuth)
c.Assert(err, IsNil)
@@ -54,6 +54,7 @@ func (s *ReceivePackSuite) TestAdvertisedReferencesNotExists(c *C) {
writer, err := r.ReceivePack(req)
c.Assert(err, Equals, transport.ErrRepositoryNotFound)
c.Assert(writer, IsNil)
+ c.Assert(r.Close(), IsNil)
}
func (s *ReceivePackSuite) TestCallAdvertisedReferenceTwice(c *C) {