mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
labels: don't test that Hash() works on unordered labels
Labels are required to be ordered. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
fb2d883f1e
commit
24ebff9c4a
|
@ -730,7 +730,6 @@ func TestLabels_Hash(t *testing.T) {
|
|||
{Name: "baz", Value: "qux"},
|
||||
}
|
||||
require.Equal(t, lbls.Hash(), lbls.Hash())
|
||||
require.NotEqual(t, lbls.Hash(), Labels{lbls[1], lbls[0]}.Hash(), "unordered labels match.")
|
||||
require.NotEqual(t, lbls.Hash(), Labels{lbls[0]}.Hash(), "different labels match.")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue