Skip to content

Commit

Permalink
Merge pull request DataDog#6919 from DataDog/bbujon/fix-test-names
Browse files Browse the repository at this point in the history
Fix test names to be unique
  • Loading branch information
PerfectSlayer authored Apr 16, 2024
2 parents 3052df4 + c44251d commit b0d5222
Showing 1 changed file with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DirContextCallSiteTest extends AgentTestRunner {
}


def 'test search(String, String, SearchControls)'() {
def 'test search(String, String, SearchControls) using #suiteBuilderName'() {
setup:
final name = 'name'
final filter = 'filter'
Expand All @@ -38,12 +38,10 @@ class DirContextCallSiteTest extends AgentTestRunner {
0 * _
where:
_ | suiteBuilder
_ | { InitialDirContext ctx -> new TestDirContextSuite(ctx) }
_ | { InitialDirContext ctx -> new TestInitialDirContextSuite(ctx) }
[suiteBuilderName, suiteBuilder] << suiteBuilders()
}
def 'test search(Name, String, SearchControls)'() {
def 'test search(Name, String, SearchControls) using #suiteBuilderName'() {
setup:
final name = Mock(Name)
final filter = 'filter'
Expand All @@ -63,12 +61,10 @@ class DirContextCallSiteTest extends AgentTestRunner {
0 * _
where:
_ | suiteBuilder
_ | { InitialDirContext ctx -> new TestDirContextSuite(ctx) }
_ | { InitialDirContext ctx -> new TestInitialDirContextSuite(ctx) }
[suiteBuilderName, suiteBuilder] << suiteBuilders()
}
def 'test search(String, String, Object[], SearchControls)'() {
def 'test search(String, String, Object[], SearchControls) using #suiteBuilderName'() {
setup:
final name = 'name'
final filter = 'filter'
Expand All @@ -89,12 +85,10 @@ class DirContextCallSiteTest extends AgentTestRunner {
0 * _
where:
_ | suiteBuilder
_ | { InitialDirContext ctx -> new TestDirContextSuite(ctx) }
_ | { InitialDirContext ctx -> new TestInitialDirContextSuite(ctx) }
[suiteBuilderName, suiteBuilder] << suiteBuilders()
}
def 'test search(Name, String, Object[], SearchControls)'() {
def 'test search(Name, String, Object[], SearchControls) using #suiteBuilderName'() {
setup:
final name = Mock(Name)
final filter = 'filter'
Expand All @@ -115,8 +109,13 @@ class DirContextCallSiteTest extends AgentTestRunner {
0 * _
where:
_ | suiteBuilder
_ | { InitialDirContext ctx -> new TestDirContextSuite(ctx) }
_ | { InitialDirContext ctx -> new TestInitialDirContextSuite(ctx) }
[suiteBuilderName, suiteBuilder] << suiteBuilders()
}
static Object[][] suiteBuilders() {
[
['TestDirContextSuite', TestDirContextSuite::new],
['TestInitialDirContextSuite', TestInitialDirContextSuite::new]
]
}
}

0 comments on commit b0d5222

Please sign in to comment.