Skip to content

Commit

Permalink
Sort metrics before comparing in graphite test
Browse files Browse the repository at this point in the history
(cherry picked from commit 98e784f)
  • Loading branch information
danielnelson committed Sep 5, 2017
1 parent 07b7e09 commit f46370d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/serializers/graphite/graphite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit f46370d

Please sign in to comment.