Sort metrics before comparing in graphite test

(cherry picked from commit 98e784faf3)
This commit is contained in:
Daniel Nelson 2017-09-05 12:50:01 -07:00
parent 07b7e09749
commit f46370d982
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}