Skip to content

Commit

Permalink
Fix http_listener_v2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored and bitcharmer committed Oct 18, 2019
1 parent 8fc7d05 commit f335a23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/inputs/http_listener_v2/http_listener_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/plugins/parsers"
"github.com/influxdata/telegraf/testutil"

"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -379,7 +378,7 @@ func TestWriteHTTPEmpty(t *testing.T) {
}

func TestWriteHTTPQueryParams(t *testing.T) {
parser, _ := parsers.NewFormDataParser("query_measurement", nil, []string{"tagKey"})
parser, _ := parsers.NewFormUrlencodedParser("query_measurement", nil, []string{"tagKey"})
listener := newTestHTTPListenerV2()
listener.DataSource = "query"
listener.Parser = parser
Expand All @@ -401,7 +400,7 @@ func TestWriteHTTPQueryParams(t *testing.T) {
}

func TestWriteHTTPFormData(t *testing.T) {
parser, _ := parsers.NewFormDataParser("query_measurement", nil, []string{"tagKey"})
parser, _ := parsers.NewFormUrlencodedParser("query_measurement", nil, []string{"tagKey"})
listener := newTestHTTPListenerV2()
listener.Parser = parser

Expand Down

0 comments on commit f335a23

Please sign in to comment.