100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Improve NotificationTest robustness
Rich Turner7a8baca8e55f
diff --git a/test/src/test/groovy/org/openremote/test/notification/NotificationTest.groovy b/test/src/test/groovy/org/openremote/test/notification/NotificationTest.groovyindex b9e060176..02865b039 100644--- a/test/src/test/groovy/org/openremote/test/notification/NotificationTest.groovy+++ b/test/src/test/groovy/org/openremote/test/notification/NotificationTest.groovy@@ -404,7 +404,7 @@ class NotificationTest extends Specification implements ManagerContainerTrait {when: "the admin user removes notifications by timestamp and the notifications are retrieved again"notifications = adminNotificationResource.getNotifications(null, null, null, null, null, null, null, null).reverse(true)def sentNotification = notifications[0]- def removeCount = notifications.count {it.sentOn == sentNotification.sentOn}+ def removeCount = notifications.count {it.sentOn >= sentNotification.sentOn}adminNotificationResource.removeNotifications(null, null, PushNotificationMessage.TYPE, sentNotification.sentOn.getTime(), null, null, null, null)then: "notifications sent after or at that time should have been removed"