From 071b7b973115ed4a2c69e60a38c409f85c022dd6 Mon Sep 17 00:00:00 2001 From: Max U Date: Thu, 21 Jun 2018 16:23:06 -0700 Subject: [PATCH] knock more errors from test files --- plugins/inputs/reader/reader_test.go | 2 +- plugins/parsers/grok/parser_test.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/inputs/reader/reader_test.go b/plugins/inputs/reader/reader_test.go index 339eba16d..cb6fb44a8 100644 --- a/plugins/inputs/reader/reader_test.go +++ b/plugins/inputs/reader/reader_test.go @@ -24,7 +24,7 @@ func TestJSONParserCompile(t *testing.T) { testDir := getPluginDir() var acc testutil.Accumulator r := Reader{ - Filepaths: []string{testDir + "/reader/testfiles/**.log"}, + Filepaths: []string{testDir + "/reader/testfiles/json_a.log"}, DataFormat: "json", Tags: []string{"parent_ignored_child"}, } diff --git a/plugins/parsers/grok/parser_test.go b/plugins/parsers/grok/parser_test.go index b87c112d2..77818199a 100644 --- a/plugins/parsers/grok/parser_test.go +++ b/plugins/parsers/grok/parser_test.go @@ -12,7 +12,6 @@ func TestGrokParse(t *testing.T) { Measurement: "t_met", Patterns: []string{"%{COMMON_LOG_FORMAT}"}, } - //var acc testutil.Accumulator parser.Compile() metrics, err := parser.Parse([]byte(`127.0.0.1 user-identifier frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326`)) log.Printf("metric_tags: %v, metric_fields: %v", metrics[0].Tags(), metrics[0].Fields())