diff options
Diffstat (limited to 'remote_test.go')
-rw-r--r-- | remote_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/remote_test.go b/remote_test.go index 4df8767..ff543f2 100644 --- a/remote_test.go +++ b/remote_test.go @@ -54,10 +54,10 @@ func (s *RemoteSuite) TestInfo(c *C) { r := newRemote(nil, &config.RemoteConfig{Name: "foo", URL: RepositoryFixture}) r.client = &MockClient{} - c.Assert(r.Info(), IsNil) + c.Assert(r.AdvertisedReferences(), IsNil) c.Assert(r.Connect(), IsNil) - c.Assert(r.Info(), NotNil) - c.Assert(r.Info().Capabilities.Get("ofs-delta"), NotNil) + c.Assert(r.AdvertisedReferences(), NotNil) + c.Assert(r.AdvertisedReferences().Capabilities.Get("ofs-delta"), NotNil) } func (s *RemoteSuite) TestDefaultBranch(c *C) { @@ -180,11 +180,11 @@ func (s *RemoteSuite) TestRef(c *C) { err := r.Connect() c.Assert(err, IsNil) - ref, err := r.Ref(plumbing.HEAD, false) + ref, err := r.Reference(plumbing.HEAD, false) c.Assert(err, IsNil) c.Assert(ref.Name(), Equals, plumbing.HEAD) - ref, err = r.Ref(plumbing.HEAD, true) + ref, err = r.Reference(plumbing.HEAD, true) c.Assert(err, IsNil) c.Assert(ref.Name(), Equals, plumbing.ReferenceName("refs/heads/master")) } @@ -196,7 +196,7 @@ func (s *RemoteSuite) TestRefs(c *C) { err := r.Connect() c.Assert(err, IsNil) - iter, err := r.Refs() + iter, err := r.References() c.Assert(err, IsNil) c.Assert(iter, NotNil) } |