knock more errors from test files

This commit is contained in:
Max U 2018-06-21 16:23:06 -07:00
parent 504d978446
commit 542c030dc8
2 changed files with 1 additions and 2 deletions

View File

@ -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"},
}

View File

@ -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())