Fix unstable fanin test (#2558)

This commit is contained in:
Tobias Schmidt 2017-04-03 13:02:15 +02:00 committed by Julius Volz
parent dafae52efa
commit eac36d123e
1 changed files with 3 additions and 0 deletions

View File

@ -698,6 +698,9 @@ func TestMetricsForLabelMatchersIgnoresRemoteData(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
sort.Slice(got, func(i, j int) bool {
return got[i].Metric.Before(got[j].Metric)
})
want := []metric.Metric{ want := []metric.Metric{
{ {