Skip to content

Commit 42174e7

Browse files
fix(internal-api): Fix test name uniqueness (#8255)
1 parent b4aadc5 commit 42174e7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

internal-api/src/test/groovy/datadog/trace/api/telemetry/MetricCollectorTest.groovy

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import spock.lang.Specification
44

55
class MetricCollectorTest extends Specification {
66

7-
void 'test metric equality'() {
7+
void 'test metric equality #iterationIndex'() {
88
when:
99
final sameMetric = first == second
1010

@@ -23,6 +23,14 @@ class MetricCollectorTest extends Specification {
2323
counter(tags: ['a:b', 'c:d'], value: 2) | counter(tags: ['a:b', 'c:d'], value: 6) | true
2424
}
2525

26+
void 'test metric toString'() {
27+
expect:
28+
metric.toString() != null
29+
30+
where:
31+
metric << [counter(value: 2), counter(namespace: 'other', value: 6), counter(tags: ['a:b', 'c:d'], value: 2)]
32+
}
33+
2634
private static MetricCollector.Metric counter(final Map metric) {
2735
metric.namespace = metric.namespace ?: 'namespace'
2836
metric.metric = metric.metric ?: 'metric'

0 commit comments

Comments
 (0)