diff options
author | Santiago M. Mola <santi@mola.io> | 2017-06-13 14:23:15 +0200 |
---|---|---|
committer | Santiago M. Mola <santi@mola.io> | 2017-06-13 15:39:49 +0200 |
commit | cbbd2a9ad8ee990c79bd847b0df2823e2449ea4e (patch) | |
tree | 25905da2442b2363d0d45bba07485543e5665deb /plumbing/transport/test | |
parent | 4b2d9b42bf18556bc51434e7221927c681bce746 (diff) | |
download | go-git-cbbd2a9ad8ee990c79bd847b0df2823e2449ea4e.tar.gz |
transport/internal: remove Wait function, use Close directly
Diffstat (limited to 'plumbing/transport/test')
-rw-r--r-- | plumbing/transport/test/receive_pack.go | 3 |
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) { |