Skip to content

armgit / core

Public Imported from GitHub
0

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

Improved HttpServerProtocolTest.groovy reliability

Rich Turner384df1ce3457
diff --git a/test/src/test/groovy/org/openremote/test/protocol/http/HttpServerProtocolTest.groovy b/test/src/test/groovy/org/openremote/test/protocol/http/HttpServerProtocolTest.groovy
index 85b14695c..1734e4f7a 100644
--- a/test/src/test/groovy/org/openremote/test/protocol/http/HttpServerProtocolTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/protocol/http/HttpServerProtocolTest.groovy
@@ -420,7 +420,11 @@ class HttpServerProtocolTest extends Specification implements ManagerContainerTr
}
when: "an attempt is made to use the removed endpoint"
- authenticatedTestResource.postAsset(testAsset)
+ try {
+ authenticatedTestResource.postAsset(testAsset)
+ } catch (Exception e) {
+ // For some reason the NotAllowedException isn't always thrown - weird
+ }
then: "the asset should not have been posted"
new PollingConditions(initialDelay: 3).eventually {