From bc2fb5e86582413e7e192c6905d0c3524fc91a20 Mon Sep 17 00:00:00 2001 From: Richard Startin Date: Wed, 16 Sep 2020 15:39:43 +0100 Subject: [PATCH] close contexts in spring scheduling tests --- .../src/test/groovy/SpringSchedulingTest.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"() {