aboutsummaryrefslogtreecommitdiffstats
path: root/clients/ssh/git_upload_pack_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'clients/ssh/git_upload_pack_test.go')
-rw-r--r--clients/ssh/git_upload_pack_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/clients/ssh/git_upload_pack_test.go b/clients/ssh/git_upload_pack_test.go
index ff27cc2..d7160dc 100644
--- a/clients/ssh/git_upload_pack_test.go
+++ b/clients/ssh/git_upload_pack_test.go
@@ -136,6 +136,9 @@ func (s *RemoteSuite) TestFetchError(c *C) {
req := &common.GitUploadPackRequest{}
req.Want(core.NewHash("1111111111111111111111111111111111111111"))
- _, err := r.Fetch(req)
+ reader, err := r.Fetch(req)
+ c.Assert(err, IsNil)
+
+ err = reader.Close()
c.Assert(err, Not(IsNil))
}