mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-26 13:11:11 -08:00
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) {
|
||||
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.")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue