Close response to avoid warning about leaked response
MODIFY
smoke-tests/src/test/groovy/io/opentelemetry/smoketest/AppServerTest.groovy
smoke-tests/src/test/groovy/io/opentelemetry/smoketest/AppServerTest.groovy
@@ -92,6 +92,9 @@ abstract class AppServerTest extends SmokeTest {
.findAny()
.isPresent()
+ cleanup:
+ response?.close()
+
where:
[appServer, jdk] << getTestParams()
}
@@ -132,6 +135,9 @@ abstract class AppServerTest extends SmokeTest {
.findAny()
.isPresent()
+ cleanup:
+ response?.close()
+
where:
[appServer, jdk] << getTestParams()
}
@@ -171,6 +177,9 @@ abstract class AppServerTest extends SmokeTest {
.findAny()
.isPresent()
+ cleanup:
+ response?.close()
+
where:
[appServer, jdk] << getTestParams()
}
@@ -212,6 +221,9 @@ abstract class AppServerTest extends SmokeTest {
.findAny()
.isPresent()
+ cleanup:
+ response?.close()
+
where:
[appServer, jdk] << getTestParams()
}
@@ -256,6 +268,9 @@ abstract class AppServerTest extends SmokeTest {
.findAny()
.isPresent()
+ cleanup:
+ response?.close()
+
where:
[appServer, jdk] << getTestParams()
}
@@ -295,6 +310,9 @@ abstract class AppServerTest extends SmokeTest {
.findAny()
.isPresent()
+ cleanup:
+ response?.close()
+
where:
[appServer, jdk] << getTestParams()
}
@@ -341,6 +359,9 @@ abstract class AppServerTest extends SmokeTest {
.findAny()
.isPresent()
+ cleanup:
+ response?.close()
+
where:
[appServer, jdk] << getTestParams()
}

Close response to avoid warning about leaked response (#2240)