mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
Fix flaky TestAtModifier (#8401)
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
This commit is contained in:
parent
db445844d3
commit
b5dfa2414b
|
@ -1053,6 +1053,10 @@ load 1ms
|
|||
|
||||
res := qry.Exec(test.Context())
|
||||
require.NoError(t, res.Err)
|
||||
if expMat, ok := c.result.(Matrix); ok {
|
||||
sort.Sort(expMat)
|
||||
sort.Sort(res.Value.(Matrix))
|
||||
}
|
||||
require.Equal(t, c.result, res.Value, "query %q failed", c.query)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue