Skip to content

Commit 5a08588

Browse files
fix(core): Fix test name uniqueness (#7998)
1 parent 58de7ff commit 5a08588

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dd-trace-core/src/test/groovy/datadog/trace/core/monitor/HealthMetricsTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class HealthMetricsTest extends DDSpecification {
175175
0 * _
176176
}
177177

178-
def "test onSend"() {
178+
def "test onSend #iterationIndex"() {
179179
setup:
180180
def latch = new CountDownLatch(3 + (response.exception() ? 1 : 0) + (response.status() ? 1 : 0))
181181
def healthMetrics = new TracerHealthMetrics(new Latched(statsD, latch), 100, TimeUnit.MILLISECONDS)
@@ -212,7 +212,7 @@ class HealthMetricsTest extends DDSpecification {
212212
sendSize = ThreadLocalRandom.current().nextInt(1, 100)
213213
}
214214

215-
def "test onFailedSend"() {
215+
def "test onFailedSend #iterationIndex"() {
216216
setup:
217217
def latch = new CountDownLatch(3 + (response.exception() ? 1 : 0) + (response.status() ? 1 : 0))
218218
def healthMetrics = new TracerHealthMetrics(new Latched(statsD, latch), 100, TimeUnit.MILLISECONDS)

dd-trace-core/src/test/groovy/datadog/trace/core/monitor/TimingTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class TimingTest extends DDSpecification {
4343
0 * _
4444
}
4545

46-
def "reset timer"() {
46+
def "reset timer #iterationIndex"() {
4747
setup:
4848
StatsDClient statsd = Mock(StatsDClient)
4949
MonitoringImpl monitoring = new MonitoringImpl(statsd, 100, MILLISECONDS)
@@ -75,7 +75,7 @@ class TimingTest extends DDSpecification {
7575
Monitoring.DISABLED.newThreadLocalTimer("foo") instanceof NoOpRecording
7676
}
7777

78-
def "no ops are safe to use"() {
78+
def "no ops are safe to use #iterationIndex"() {
7979
expect:
8080
try {
8181
recording.start().stop()

0 commit comments

Comments
 (0)