Skip to content

Commit 3fb3733

Browse files
Fix non unique test names (#11061)
fix(aiguard): Fix non unique test names fix(kotlin-coroutines): Fix non unique test names Co-authored-by: bruce.bujon <bruce.bujon@datadoghq.com>
1 parent d36f7e7 commit 3fb3733

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dd-java-agent/agent-aiguard/src/test/groovy/com/datadog/aiguard/AIGuardInternalTests.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ class AIGuardInternalTests extends DDSpecification {
824824
", reason='" + reason + '\'' +
825825
", blocking=" + blocking +
826826
", target='" + target + '\'' +
827-
", messages=" + messages + '\'' +
827+
", messages=" + messages.collect {it.content } + '\'' +
828828
", tags=" + tags +
829829
'}'
830830
}

dd-java-agent/instrumentation/kotlin-coroutines-1.3/src/testFixtures/groovy/datadog/trace/instrumentation/kotlin/coroutines/AbstractKotlinCoroutineInstrumentationTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ abstract class AbstractKotlinCoroutineInstrumentationTest<T extends CoreKotlinCo
358358
[dispatcherName, dispatcher] << dispatchersToTest
359359
}
360360

361-
def "kotlin trace consistent with timeout"() {
361+
def "kotlin trace consistent with timeout #dispatcherName"() {
362362
setup:
363363
CoreKotlinCoroutineTests kotlinTest = getCoreKotlinCoroutineTestsInstance(dispatcher)
364364
int expectedNumberOfSpans = kotlinTest.traceAfterTimeout()
@@ -397,7 +397,7 @@ abstract class AbstractKotlinCoroutineInstrumentationTest<T extends CoreKotlinCo
397397
[dispatcherName, dispatcher] << dispatchersToTest
398398
}
399399

400-
def "kotlin trace consistent after delay"() {
400+
def "kotlin trace consistent after delay #dispatcherName"() {
401401
setup:
402402
CoreKotlinCoroutineTests kotlinTest = getCoreKotlinCoroutineTestsInstance(dispatcher)
403403
int expectedNumberOfSpans = kotlinTest.traceAfterDelay()

0 commit comments

Comments
 (0)