Fixed typos in go test
This commit is contained in:
parent
89cdeec055
commit
6f1dce6e05
|
@ -25,11 +25,11 @@ func TestFormatMetric(t *testing.T) {
|
||||||
}
|
}
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
k := &KinesisOutput{
|
k = &KinesisOutput{
|
||||||
Format: "json",
|
Format: "json",
|
||||||
}
|
}
|
||||||
|
|
||||||
valid_json := "{\"fields\":{\"value\":1},\"name\":\"docker\",\"tags\":{\"tag1\":\"value1\"},\"timestamp\":1257894000}"
|
valid_json := "{\"fields\":{\"value\":1},\"name\":\"test1\",\"tags\":{\"tag1\":\"value1\"},\"timestamp\":1257894000}"
|
||||||
func_json, err := FormatMetric(k, p)
|
func_json, err := FormatMetric(k, p)
|
||||||
|
|
||||||
if func_json != valid_json {
|
if func_json != valid_json {
|
||||||
|
|
Loading…
Reference in New Issue