Fix typo (tranport > transport).
This commit is contained in:
parent
0f6664b260
commit
22d4d1fb42
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue