Skip to content

Commit

Permalink
fix(core): Fix test name uniqueness (#7998)
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectSlayer authored Nov 22, 2024
1 parent 58de7ff commit 5a08588
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class HealthMetricsTest extends DDSpecification {
0 * _
}

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

def "test onFailedSend"() {
def "test onFailedSend #iterationIndex"() {
setup:
def latch = new CountDownLatch(3 + (response.exception() ? 1 : 0) + (response.status() ? 1 : 0))
def healthMetrics = new TracerHealthMetrics(new Latched(statsD, latch), 100, TimeUnit.MILLISECONDS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TimingTest extends DDSpecification {
0 * _
}

def "reset timer"() {
def "reset timer #iterationIndex"() {
setup:
StatsDClient statsd = Mock(StatsDClient)
MonitoringImpl monitoring = new MonitoringImpl(statsd, 100, MILLISECONDS)
Expand Down Expand Up @@ -75,7 +75,7 @@ class TimingTest extends DDSpecification {
Monitoring.DISABLED.newThreadLocalTimer("foo") instanceof NoOpRecording
}

def "no ops are safe to use"() {
def "no ops are safe to use #iterationIndex"() {
expect:
try {
recording.start().stop()
Expand Down

0 comments on commit 5a08588

Please sign in to comment.