Skip to content

armgit / core

Public Imported from GitHub
0

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

Fixed test

Michael Rademakercdd9955ee627
diff --git a/test/src/test/groovy/org/openremote/test/assets/AssetDatapointTest.groovy b/test/src/test/groovy/org/openremote/test/assets/AssetDatapointTest.groovy
index 87f9fac55..2616b0d7e 100644
--- a/test/src/test/groovy/org/openremote/test/assets/AssetDatapointTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/assets/AssetDatapointTest.groovy
@@ -107,8 +107,9 @@ class AssetDatapointTest extends Specification implements ManagerContainerTrait
def thing = assetStorageService.find(managerDemoSetup.thingId, true)
def aggregatedDatapoints = assetDatapointService.getValueDatapoints(
thing.getAttribute("light1PowerConsumption").orElseThrow({ new RuntimeException("Missing attribute")}),
- DatapointInterval.HOUR,
- getClockTimeOf(container)
+ DatapointInterval.MINUTE,
+ getClockTimeOf(container),
+ getClockTimeOf(container) + 3600000
)
assert aggregatedDatapoints.size() == 61
}
@@ -170,8 +171,9 @@ class AssetDatapointTest extends Specification implements ManagerContainerTrait
def thing = assetStorageService.find(managerDemoSetup.thingId, true)
def aggregatedDatapoints = assetDatapointService.getValueDatapoints(
thing.getAttribute(thingLightToggleAttributeName).orElseThrow({ new RuntimeException("Missing attribute")}),
- DatapointInterval.HOUR,
- getClockTimeOf(container)
+ DatapointInterval.MINUTE,
+ getClockTimeOf(container),
+ getClockTimeOf(container) + 3600000
)
assert aggregatedDatapoints.size() == 61
}