aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/http/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/transport/http/common_test.go')
-rw-r--r--plumbing/transport/http/common_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plumbing/transport/http/common_test.go b/plumbing/transport/http/common_test.go
index 432bd07..217999d 100644
--- a/plumbing/transport/http/common_test.go
+++ b/plumbing/transport/http/common_test.go
@@ -26,7 +26,7 @@ func (s *ClientSuite) SetUpSuite(c *C) {
c.Assert(err, IsNil)
}
-func (s *FetchPackSuite) TestNewClient(c *C) {
+func (s *UploadPackSuite) TestNewClient(c *C) {
roundTripper := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
@@ -76,10 +76,10 @@ func (s *ClientSuite) testNewHTTPError(c *C, code int, msg string) {
func (s *ClientSuite) TestSetAuth(c *C) {
auth := &BasicAuth{}
- r, err := DefaultClient.NewFetchPackSession(s.Endpoint)
+ r, err := DefaultClient.NewUploadPackSession(s.Endpoint)
c.Assert(err, IsNil)
r.SetAuth(auth)
- c.Assert(auth, Equals, r.(*fetchPackSession).auth)
+ c.Assert(auth, Equals, r.(*upSession).auth)
}
type mockAuth struct{}
@@ -88,7 +88,7 @@ func (*mockAuth) Name() string { return "" }
func (*mockAuth) String() string { return "" }
func (s *ClientSuite) TestSetAuthWrongType(c *C) {
- r, err := DefaultClient.NewFetchPackSession(s.Endpoint)
+ r, err := DefaultClient.NewUploadPackSession(s.Endpoint)
c.Assert(err, IsNil)
c.Assert(r.SetAuth(&mockAuth{}), Equals, transport.ErrInvalidAuthMethod)
}