Skip to content

Commit

Permalink
fix: Trino test
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Feb 28, 2024
1 parent fe67599 commit a0454f0
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
import io.kestra.plugin.jdbc.AbstractJdbcQuery;
import io.kestra.plugin.jdbc.AbstractRdbmsTest;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import org.h2.tools.RunScript;
import org.junit.jupiter.api.Test;

import java.io.FileNotFoundException;
import java.io.StringReader;
import java.math.BigDecimal;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -43,8 +41,6 @@ void select() throws Exception {
AbstractJdbcQuery.Output runOutput = task.run(runContext);
assertThat(runOutput.getRow(), notNullValue());

String hour = System.getenv("GITHUB_WORKFLOW") != null ? "14" : "12";

assertThat(runOutput.getRow().get("t_null"), is(nullValue()));
assertThat(runOutput.getRow().get("t_boolean"), is(true));
assertThat(runOutput.getRow().get("t_tinyint"), is(127));
Expand All @@ -60,7 +56,7 @@ void select() throws Exception {
assertThat((Map<String, String>) runOutput.getRow().get("t_json") , is(Map.of("a", "b")));
assertThat(runOutput.getRow().get("t_date"), is(LocalDate.parse("2001-08-22")));
assertThat(runOutput.getRow().get("t_time"), is(LocalTime.parse("01:02:03")));
assertThat(runOutput.getRow().get("t_time_tz"), is(OffsetTime.parse("01:02:03.456-08:00")));
assertThat(runOutput.getRow().get("t_time_tz"), is(OffsetTime.parse("01:02:03.456-08:00").toLocalTime()));
assertThat(runOutput.getRow().get("t_timestamp"), is(LocalDateTime.parse("2020-06-10T15:55:23.383345")));
assertThat(runOutput.getRow().get("t_timestamp_tz"), is(ZonedDateTime.parse("2001-08-22T13:04:05.321+02:00[Europe/Paris]")));
assertThat(runOutput.getRow().get("t_interval_year"), is("P3M"));
Expand Down

0 comments on commit a0454f0

Please sign in to comment.