diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2015-10-27 01:49:58 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2015-10-27 01:49:58 +0100 |
commit | 7d6c5a56c0b63705378f125523876de1a97fd1ce (patch) | |
tree | 8945a8a02d53f36a64304beaf006c4f46d61da48 /remote_test.go | |
parent | a2e49a59782a50a9ff116c6d17c6e3888502f2ad (diff) | |
download | go-git-7d6c5a56c0b63705378f125523876de1a97fd1ce.tar.gz |
tree and commit
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) |