aboutsummaryrefslogtreecommitdiffstats
path: root/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'common_test.go')
-rw-r--r--common_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/common_test.go b/common_test.go
index 6239afe..dbacddd 100644
--- a/common_test.go
+++ b/common_test.go
@@ -18,12 +18,18 @@ import (
func Test(t *testing.T) { TestingT(t) }
-type BaseSuite struct{}
+type BaseSuite struct {
+ Repository *Repository
+}
func (s *BaseSuite) SetUpTest(c *C) {
clients.InstallProtocol("mock", func(end common.Endpoint) common.GitUploadPackService {
return &MockGitUploadPackService{endpoint: end}
})
+
+ s.Repository = NewMemoryRepository()
+ err := s.Repository.Clone(&CloneOptions{URL: RepositoryFixture})
+ c.Assert(err, IsNil)
}
const RepositoryFixture = "mock://formats/packfile/fixtures/git-fixture.ref-delta"