Skip to content

Commit 39d4c51

Browse files
authored
Fix rum injection tests (#10129)
1 parent ea129e7 commit 39d4c51

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

dd-java-agent/instrumentation/spring/spring-webmvc/spring-webmvc-3.1/src/latestDepTest/groovy/test/boot/SpringBootBasedTest.groovy

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ class SpringBootBasedTest extends HttpServerTest<ConfigurableApplicationContext>
129129
true
130130
}
131131

132-
@Override
133-
boolean testRumInjection() {
134-
true
135-
}
136-
137132
@Override
138133
Serializable expectedServerSpanRoute(ServerEndpoint endpoint) {
139134
switch (endpoint) {
@@ -422,3 +417,10 @@ class SpringBootBasedTest extends HttpServerTest<ConfigurableApplicationContext>
422417
}
423418
}
424419
}
420+
421+
class SpringBootRumInjectionForkedTest extends SpringBootBasedTest {
422+
@Override
423+
boolean testRumInjection() {
424+
true
425+
}
426+
}

dd-java-agent/instrumentation/spring/spring-webmvc/spring-webmvc-6.0/src/test/groovy/datadog/trace/instrumentation/springweb6/boot/SpringBootBasedTest.groovy

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,6 @@ class SpringBootBasedTest extends HttpServerTest<ConfigurableApplicationContext>
221221
true
222222
}
223223

224-
@Override
225-
boolean testRumInjection() {
226-
true
227-
}
228-
229224
@Override
230225
Map<String, Serializable> expectedExtraErrorInformation(ServerEndpoint endpoint) {
231226
// latest DispatcherServlet throws if no handlers have been found
@@ -524,3 +519,10 @@ class SpringBootBasedTest extends HttpServerTest<ConfigurableApplicationContext>
524519
}
525520
}
526521
}
522+
523+
class SpringBootRumInjectionForkedTest extends SpringBootBasedTest {
524+
@Override
525+
boolean testRumInjection() {
526+
true
527+
}
528+
}

0 commit comments

Comments
 (0)