diff options
Diffstat (limited to 'clients/common/common_test.go')
-rw-r--r-- | clients/common/common_test.go | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/clients/common/common_test.go b/clients/common/common_test.go index 5ffb402..dac15b6 100644 --- a/clients/common/common_test.go +++ b/clients/common/common_test.go @@ -108,15 +108,10 @@ func (s *SuiteCommon) TestGitUploadPackEncode(c *C) { } func (s *SuiteCommon) TestGitUploadPackRequest(c *C) { - r := &GitUploadPackRequest{ - Want: []core.Hash{ - core.NewHash("d82f291cde9987322c8a0c81a325e1ba6159684c"), - core.NewHash("2b41ef280fdb67a9b250678686a0c3e03b0a9989"), - }, - Have: []core.Hash{ - core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"), - }, - } + r := &GitUploadPackRequest{} + r.Want(core.NewHash("d82f291cde9987322c8a0c81a325e1ba6159684c")) + r.Want(core.NewHash("2b41ef280fdb67a9b250678686a0c3e03b0a9989")) + r.Have(core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5")) c.Assert(r.String(), Equals, "0032want d82f291cde9987322c8a0c81a325e1ba6159684c\n"+ |