model/labels: Fix new lint warning in test
Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
parent
86d7618d84
commit
553d92affd
|
@ -708,7 +708,8 @@ func TestScratchBuilder(t *testing.T) {
|
||||||
|
|
||||||
func TestLabels_Hash(t *testing.T) {
|
func TestLabels_Hash(t *testing.T) {
|
||||||
lbls := FromStrings("foo", "bar", "baz", "qux")
|
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.")
|
require.NotEqual(t, lbls.Hash(), FromStrings("foo", "bar").Hash(), "different labels match.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue