Skip to content

Commit

Permalink
change ok to exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mackjmr committed Jul 19, 2023
1 parent e254c4f commit 6c7a7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/mdatagen/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 6c7a7c7

Please sign in to comment.