From 49f40d9f410a6fc0a9c89ba228d16cd570ec711a Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Tue, 10 Nov 2015 21:07:29 +0100 Subject: common: GitUploadPackRequest Want, Have methods --- clients/http/git_upload_pack_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'clients/http') diff --git a/clients/http/git_upload_pack_test.go b/clients/http/git_upload_pack_test.go index 02ed37c..f9ec424 100644 --- a/clients/http/git_upload_pack_test.go +++ b/clients/http/git_upload_pack_test.go @@ -58,12 +58,10 @@ func (s *SuiteRemote) TestFetch(c *C) { r := NewGitUploadPackService() c.Assert(r.Connect(RepositoryFixture), IsNil) - reader, err := r.Fetch(&common.GitUploadPackRequest{ - Want: []core.Hash{ - core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"), - }, - }) + req := &common.GitUploadPackRequest{} + req.Want(core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5")) + reader, err := r.Fetch(req) c.Assert(err, IsNil) b, err := ioutil.ReadAll(reader) -- cgit