diff --git a/plugins/serializers/graphite/graphite_test.go b/plugins/serializers/graphite/graphite_test.go index 62d0f2a24..a6dd1aaa9 100644 --- a/plugins/serializers/graphite/graphite_test.go +++ b/plugins/serializers/graphite/graphite_test.go @@ -212,6 +212,8 @@ func TestSerializeValueBoolean(t *testing.T) { fmt.Sprintf("localhost.enabled.cpu0.us-west-2.cpu 1 %d", now.Unix()), fmt.Sprintf("localhost.disabled.cpu0.us-west-2.cpu 0 %d", now.Unix()), } + sort.Strings(mS) + sort.Strings(expS) assert.Equal(t, expS, mS) }