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:
Bryan Boreham 2022-06-26 18:13:05 +01:00 committed by Julien Pivotto
parent fb2d883f1e
commit 24ebff9c4a

View file

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