change test files to reflect unexported newJsonParser func
This commit is contained in:
parent
4db667573a
commit
885193bc8f
|
@ -143,7 +143,11 @@ func TestConfig_LoadDirectory(t *testing.T) {
|
|||
"Testdata did not produce correct memcached metadata.")
|
||||
|
||||
ex := inputs.Inputs["exec"]().(*exec.Exec)
|
||||
p, err := parsers.NewJSONParser("exec", nil, nil, nil)
|
||||
config := &parsers.Config{
|
||||
MetricName: "exec",
|
||||
DataFormat: "json",
|
||||
}
|
||||
p, err := parsers.NewParser(config)
|
||||
assert.NoError(t, err)
|
||||
ex.SetParser(p)
|
||||
ex.Command = "/usr/bin/myothercollector --foo=bar"
|
||||
|
|
Loading…
Reference in New Issue