diff options
Diffstat (limited to 'remote_test.go')
-rw-r--r-- | remote_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/remote_test.go b/remote_test.go index 5cb2e30..6d8c2ff 100644 --- a/remote_test.go +++ b/remote_test.go @@ -21,6 +21,8 @@ func (s *SuiteRemote) TestConnect(c *C) { func (s *SuiteRemote) TestDefaultBranch(c *C) { r, err := NewRemote(RepositoryFixture) + r.upSrv = &MockGitUploadPackService{} + c.Assert(err, IsNil) c.Assert(r.Connect(), IsNil) c.Assert(r.DefaultBranch(), Equals, "refs/heads/master") @@ -28,6 +30,8 @@ func (s *SuiteRemote) TestDefaultBranch(c *C) { func (s *SuiteRemote) TestCapabilities(c *C) { r, err := NewRemote(RepositoryFixture) + r.upSrv = &MockGitUploadPackService{} + c.Assert(err, IsNil) c.Assert(r.Connect(), IsNil) c.Assert(r.Capabilities().Get("agent"), HasLen, 1) @@ -35,6 +39,8 @@ func (s *SuiteRemote) TestCapabilities(c *C) { func (s *SuiteRemote) TestFetchDefaultBranch(c *C) { r, err := NewRemote(RepositoryFixture) + r.upSrv = &MockGitUploadPackService{} + c.Assert(err, IsNil) c.Assert(r.Connect(), IsNil) |