clean up some test cases

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

View File

@ -49,7 +49,7 @@ func TestGrokParser(t *testing.T) {
log.Printf("err: %v", err)
log.Printf("metric[0]_tags: %v, metric[0]_fields: %v", acc.Metrics[0].Tags, acc.Metrics[0].Fields)
log.Printf("metric[1]_tags: %v, metric[1]_fields: %v", acc.Metrics[1].Tags, acc.Metrics[1].Fields)
t.Error()
assert.Equal(t, 2, len(acc.Metrics))
}
func getPluginDir() string {

View File

@ -17,5 +17,4 @@ func TestGrokParse(t *testing.T) {
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())
assert.NoError(t, err)
//t.Error()
}