From 79087748f60f9aba219624a0fe9f4d33a0b51236 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Sat, 13 Aug 2016 22:32:34 +0200 Subject: Repository.Clone and Remote.Fetch tests and improvements --- objects_test.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'objects_test.go') diff --git a/objects_test.go b/objects_test.go index aeaceea..d24aa7b 100644 --- a/objects_test.go +++ b/objects_test.go @@ -10,23 +10,22 @@ import ( ) type ObjectsSuite struct { + BaseSuite r *Repository } var _ = Suite(&ObjectsSuite{}) -/* func (s *ObjectsSuite) SetUpTest(c *C) { + s.BaseSuite.SetUpTest(c) + var err error - s.r, err = NewRepository(RepositoryFixture, nil) + s.r, err = NewMemoryRepository() c.Assert(err, IsNil) - s.r.Remotes["origin"].upSrv = &MockGitUploadPackService{} - - err = s.r.Pull("origin", "refs/heads/master") + err = s.r.Clone(&CloneOptions{URL: RepositoryFixture}) c.Assert(err, IsNil) } -*/ func (s *ObjectsSuite) TestNewCommit(c *C) { hash := core.NewHash("a5b8b09e2f8fcb0bb99d3ccb0958157b40890d69") -- cgit