Skip to content

Commit

Permalink
fix carbon tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ssoroka committed Oct 7, 2020
1 parent f88e0f6 commit 5cc4387
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/serializers/carbon2/carbon2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,22 +233,22 @@ func TestSerializeMetricBool(t *testing.T) {
}{
{
metric: requireMetric(t, now, false),
format: Carbon2FormatFieldSeparate,
format: string(Carbon2FormatFieldSeparate),
expected: fmt.Sprintf("metric=cpu field=java_lang_GarbageCollector_Valid tag_name=tag_value 0 %d\n", now.Unix()),
},
{
metric: requireMetric(t, now, false),
format: Carbon2FormatMetricIncludesField,
format: string(Carbon2FormatMetricIncludesField),
expected: fmt.Sprintf("metric=cpu_java_lang_GarbageCollector_Valid tag_name=tag_value 0 %d\n", now.Unix()),
},
{
metric: requireMetric(t, now, true),
format: Carbon2FormatFieldSeparate,
format: string(Carbon2FormatFieldSeparate),
expected: fmt.Sprintf("metric=cpu field=java_lang_GarbageCollector_Valid tag_name=tag_value 1 %d\n", now.Unix()),
},
{
metric: requireMetric(t, now, true),
format: Carbon2FormatMetricIncludesField,
format: string(Carbon2FormatMetricIncludesField),
expected: fmt.Sprintf("metric=cpu_java_lang_GarbageCollector_Valid tag_name=tag_value 1 %d\n", now.Unix()),
},
}
Expand Down

0 comments on commit 5cc4387

Please sign in to comment.