Skip to content

Commit

Permalink
Fix typo (tranport > transport).
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Jul 10, 2015
1 parent 0f6664b commit 22d4d1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/elasticsearch/elasticsearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 22d4d1f

Please sign in to comment.