From 081bcecf40d1a71de7d5d840c08be6b7a48d594f Mon Sep 17 00:00:00 2001 From: danielfeismann Date: Thu, 22 Feb 2024 19:45:26 +0100 Subject: [PATCH] fix InfluxDbSinkIT --- .../groovy/edu/ie3/datamodel/io/sink/InfluxDbSinkIT.groovy | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/test/groovy/edu/ie3/datamodel/io/sink/InfluxDbSinkIT.groovy b/src/test/groovy/edu/ie3/datamodel/io/sink/InfluxDbSinkIT.groovy index eb22b04cd..ed8da57db 100644 --- a/src/test/groovy/edu/ie3/datamodel/io/sink/InfluxDbSinkIT.groovy +++ b/src/test/groovy/edu/ie3/datamodel/io/sink/InfluxDbSinkIT.groovy @@ -55,7 +55,7 @@ class InfluxDbSinkIT extends Specification { sink = new InfluxDbSink(connector) fileNamingStrategy = new FileNamingStrategy() } - + static def timeUtil = TimeUtil.withDefaults def "The test container can establish a valid connection"() { when: @@ -230,7 +230,6 @@ class InfluxDbSinkIT extends Specification { static def mapMatchesLineResultEntity(Map fieldMap, LineResult lineResult) { - def timeUtil = new TimeUtil(ZoneId.of("UTC"), Locale.GERMANY, "yyyy-MM-dd'T'HH:mm:ss[.S[S][S]]'Z'") timeUtil.toZonedDateTime(fieldMap.get("time")) == lineResult.getTime() fieldMap.get("uuid") == lineResult.getUuid().toString() fieldMap.get("input_model") == lineResult.getInputModel().toString() @@ -250,7 +249,6 @@ class InfluxDbSinkIT extends Specification { static def mapMatchesChpResultEntity(Map fieldMap, ChpResult chpResult) { - def timeUtil = new TimeUtil(ZoneId.of("UTC"), Locale.GERMANY, "yyyy-MM-dd'T'HH:mm:ss[.S[S][S]]'Z'") timeUtil.toZonedDateTime(fieldMap.get("time")) == chpResult.getTime() fieldMap.get("uuid") == chpResult.getUuid().toString() fieldMap.get("input_model") == chpResult.getInputModel().toString() @@ -263,7 +261,6 @@ class InfluxDbSinkIT extends Specification { } static def mapMatchesTimeBasedValue(Map fieldMap, TimeBasedValue pVal) { - def timeUtil = new TimeUtil(ZoneId.of("UTC"), Locale.GERMANY, "yyyy-MM-dd'T'HH:mm:ss[.S[S][S]]'Z'") timeUtil.toZonedDateTime(fieldMap.get("time")) == pVal.getTime() fieldMap.get("uuid") == pVal.getUuid().toString() def pStr = fieldMap.get("p")