Fix typo (tranport > transport).

This commit is contained in:
Orne Brocaar 2015-07-10 09:00:28 +02:00
parent 0f6664b260
commit 22d4d1fb42
1 changed files with 3 additions and 3 deletions

View File

@ -10,19 +10,19 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )
type tranportMock struct { type transportMock struct {
statusCode int statusCode int
body string body string
} }
func newTransportMock(statusCode int, body string) http.RoundTripper { func newTransportMock(statusCode int, body string) http.RoundTripper {
return &tranportMock{ return &transportMock{
statusCode: statusCode, statusCode: statusCode,
body: body, body: body,
} }
} }
func (t *tranportMock) RoundTrip(r *http.Request) (*http.Response, error) { func (t *transportMock) RoundTrip(r *http.Request) (*http.Response, error) {
res := &http.Response{ res := &http.Response{
Header: make(http.Header), Header: make(http.Header),
Request: r, Request: r,