diff --git a/dd-java-agent/instrumentation/spring-scheduling-3.1/src/test/groovy/SpringSchedulingTest.groovy b/dd-java-agent/instrumentation/spring-scheduling-3.1/src/test/groovy/SpringSchedulingTest.groovy index 655dd3989df..e1f88de7163 100644 --- a/dd-java-agent/instrumentation/spring-scheduling-3.1/src/test/groovy/SpringSchedulingTest.groovy +++ b/dd-java-agent/instrumentation/spring-scheduling-3.1/src/test/groovy/SpringSchedulingTest.groovy @@ -29,6 +29,7 @@ class SpringSchedulingTest extends AgentTestRunner { } } } + cleanup: context.close() } def "schedule interval test"() { @@ -54,7 +55,7 @@ class SpringSchedulingTest extends AgentTestRunner { } } } - + cleanup: context.close() } def "schedule lambda test"() {