diff --git a/cmd/mdatagen/validate_test.go b/cmd/mdatagen/validate_test.go index eab44b08dfab..408c3f2835b8 100644 --- a/cmd/mdatagen/validate_test.go +++ b/cmd/mdatagen/validate_test.go @@ -134,8 +134,8 @@ func TestMetricCollision(t *testing.T) { if metricName == "container.cpu.utilization" || metricName == "container.memory.rss" { continue } - val, ok := seen[metricName] - assert.False(t, ok, fmt.Sprintf("Collision for metric %v in receivers %v and %v \n", metricName, receiver, val)) + val, exists := seen[metricName] + assert.False(t, exists, fmt.Sprintf("Collision for metric %v in receivers %v and %v \n", metricName, receiver, val)) seen[metricName] = receiver } }