Fix flaky TestAtModifier (#8401)

Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
This commit is contained in:
Ganesh Vernekar 2021-01-24 20:23:30 +05:30 committed by GitHub
parent db445844d3
commit b5dfa2414b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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