From bbc43add2955531ef00538c98e06176d3ec2db53 Mon Sep 17 00:00:00 2001 From: "chenglong.wang" Date: Thu, 13 Jun 2024 19:27:50 +0800 Subject: [PATCH] [ci] Ignore an invalid unit test #132 --- .../java/org/apache/flink/connector/clickhouse/AppTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flink-connector-clickhouse/src/test/java/org/apache/flink/connector/clickhouse/AppTest.java b/flink-connector-clickhouse/src/test/java/org/apache/flink/connector/clickhouse/AppTest.java index 1c8986c..edf657c 100644 --- a/flink-connector-clickhouse/src/test/java/org/apache/flink/connector/clickhouse/AppTest.java +++ b/flink-connector-clickhouse/src/test/java/org/apache/flink/connector/clickhouse/AppTest.java @@ -29,6 +29,7 @@ import org.apache.flink.table.data.TimestampData; import com.clickhouse.data.value.ClickHouseDateTimeValue; +import org.junit.Ignore; import org.junit.Test; import java.io.Serializable; @@ -54,12 +55,14 @@ /** Unit test for simple App. */ public class AppTest { + @Ignore @Test public void timestampLtzTest() { Instant now = Instant.now(); TimestampData timestampData = TimestampData.fromInstant(now); Instant instant = timestampData.toInstant(); LocalDateTime localDateTime = timestampData.toLocalDateTime(); + // Error if timezone equals UTC+0. LocalDateTime zoneDateTime = instant.atZone(TimeZone.getDefault().toZoneId()).toLocalDateTime(); assertFalse(Duration.between(localDateTime, zoneDateTime).isZero());