Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed Apr 10, 2022
1 parent 72afe97 commit 4b651f7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import com.clickhouse.client.BaseClickHouseValueTest;
import com.clickhouse.client.ClickHouseValues;

public class ClickHouseStringValueTest extends BaseClickHouseValueTest {
@DataProvider(name = "stateProvider")
Expand Down Expand Up @@ -102,7 +103,7 @@ public void testValue() throws Exception {
DateTimeParseException.class, // DateTime
DateTimeParseException.class, // DateTime(9)
Inet4Address.getAllByName("127.0.0.1")[0], // Inet4Address
IllegalArgumentException.class, // Inet6Address
ClickHouseValues.convertToIpv6("127.0.0.1"), // Inet6Address
"", // String
"''", // SQL Expression
DateTimeParseException.class, // Time
Expand Down Expand Up @@ -136,7 +137,7 @@ public void testValue() throws Exception {
DateTimeParseException.class, // DateTime
DateTimeParseException.class, // DateTime(9)
Inet4Address.getAllByName("0.0.0.0")[0], // Inet4Address
IllegalArgumentException.class, // Inet6Address
ClickHouseValues.convertToIpv6("0.0.0.0"), // Inet6Address
"0", // String
"'0'", // SQL Expression
DateTimeParseException.class, // Time
Expand Down Expand Up @@ -168,7 +169,7 @@ public void testValue() throws Exception {
DateTimeParseException.class, // DateTime
DateTimeParseException.class, // DateTime(9)
Inet4Address.getAllByName("0.0.0.1")[0], // Inet4Address
IllegalArgumentException.class, // Inet6Address
ClickHouseValues.convertToIpv6("0.0.0.1"), // Inet6Address
"1", // String
"'1'", // SQL Expression
DateTimeParseException.class, // Time
Expand Down Expand Up @@ -200,7 +201,7 @@ public void testValue() throws Exception {
DateTimeParseException.class, // DateTime
DateTimeParseException.class, // DateTime(9)
Inet4Address.getAllByName("0.0.0.2")[0], // Inet4Address
IllegalArgumentException.class, // Inet6Address
ClickHouseValues.convertToIpv6("0.0.0.2"), // Inet6Address
"2", // String
"'2'", // SQL Expression
DateTimeParseException.class, // Time
Expand Down

0 comments on commit 4b651f7

Please sign in to comment.