From 553d92affd423db09112be2c04e64a7de8671358 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Wed, 7 Feb 2024 18:12:26 +0100 Subject: [PATCH] model/labels: Fix new lint warning in test Signed-off-by: beorn7 --- model/labels/labels_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/labels/labels_test.go b/model/labels/labels_test.go index c497851d1..0221c66eb 100644 --- a/model/labels/labels_test.go +++ b/model/labels/labels_test.go @@ -708,7 +708,8 @@ func TestScratchBuilder(t *testing.T) { func TestLabels_Hash(t *testing.T) { lbls := FromStrings("foo", "bar", "baz", "qux") - require.Equal(t, lbls.Hash(), lbls.Hash()) + hash1, hash2 := lbls.Hash(), lbls.Hash() + require.Equal(t, hash1, hash2) require.NotEqual(t, lbls.Hash(), FromStrings("foo", "bar").Hash(), "different labels match.") }