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"
)
type tranportMock struct {
type transportMock struct {
statusCode int
body string
}
func newTransportMock(statusCode int, body string) http.RoundTripper {
return &tranportMock{
return &transportMock{
statusCode: statusCode,
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{
Header: make(http.Header),
Request: r,