Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Apply withClosable for rejected requests

Ekhorn9c635f76d933
diff --git a/test/src/test/groovy/org/openremote/test/gateway/GatewayTunnelAuthorizationTest.groovy b/test/src/test/groovy/org/openremote/test/gateway/GatewayTunnelAuthorizationTest.groovy
index 08e3b000a..6ba01f52e 100644
--- a/test/src/test/groovy/org/openremote/test/gateway/GatewayTunnelAuthorizationTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/gateway/GatewayTunnelAuthorizationTest.groovy
@@ -311,7 +311,7 @@ class GatewayTunnelAuthorizationTest extends Specification implements ManagerCon
call.call()
return null
} catch (WebApplicationException e) {
- return e.response.status
+ return e.response.withCloseable { r -> r.status }
}
}