Skip to content

Commit

Permalink
[ci] Ignore an invalid unit test #132
Browse files Browse the repository at this point in the history
  • Loading branch information
itinycheng committed Jun 14, 2024
1 parent e003b80 commit 1a1b2a7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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());
Expand Down

0 comments on commit 1a1b2a7

Please sign in to comment.