Skip to content

Commit

Permalink
fix IT
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpaulyz committed Jun 6, 2024
1 parent afb1173 commit 8eb1a09
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
4 changes: 1 addition & 3 deletions .mvn/develocity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
<buildScan>
<backgroundBuildScanUpload>#{isFalse(env['GITHUB_ACTIONS'])}</backgroundBuildScanUpload>
<publishing>
<onlyIf>
<![CDATA[authenticated]]>
</onlyIf>
<onlyIf><![CDATA[authenticated]]></onlyIf>
</publishing>
<obfuscation>
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ public void countTest() {
public void firstTest() {
String[] retArray =
new String[] {
"0,2000,2000,2000.0,2000,2000,0x2000,2000-01-01,1970-01-01T00:00:02.000Z",
"0,500,500,500.0,500,500,0x0500,1500-01-01,1970-01-01T00:00:00.500Z"
"0,2000,2000,2000.0,2000,2000,0x2000,2000-01-01,2000",
"0,500,500,500.0,500,500,0x0500,1500-01-01,500"
};
try (Connection connection = EnvFactory.getEnv().getConnection();
Statement statement = connection.createStatement()) {
Expand Down Expand Up @@ -453,9 +453,9 @@ public void firstTest() {
public void lastTest() {
String[] retArray =
new String[] {
"0,8499,8499.0,8499,0x8499,8499-01-01,1970-01-01T00:00:08.499Z",
"0,1499,1499.0,1499,0x1499,1499-01-01,1970-01-01T00:00:01.499Z",
"0,2200,2200.0,2200,0x2200,2200-01-01,1970-01-01T00:00:02.200Z"
"0,8499,8499.0,8499,0x8499,8499-01-01,8499",
"0,1499,1499.0,1499,0x1499,1499-01-01,1499",
"0,2200,2200.0,2200,0x2200,2200-01-01,2200"
};
try (Connection connection = EnvFactory.getEnv().getConnection();
Statement statement = connection.createStatement()) {
Expand Down Expand Up @@ -727,10 +727,7 @@ public void firstLastValueTest() throws SQLException {
@Test
public void maxminValueTest() {
String[] retArray =
new String[] {
"0,8499,500.0,999,1000,8499-01-01,1000-01-01,1970-01-01T00:00:08.499Z,1970-01-01T00:00:00.500Z",
"0,2499,500.0"
};
new String[] {"0,8499,500.0,999,1000,8499-01-01,1000-01-01,8499,500", "0,2499,500.0"};
try (Connection connection = EnvFactory.getEnv().getConnection();
Statement statement = connection.createStatement()) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ public void testMaxByWithDifferentXAndYInputTypes() {
"root.db.d1",
new String[] {"x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10"},
new String[] {"y1", "y2", "y3", "y4", "y7", "y9", "y10"});
String[] retArray =
new String[] {"3,3,3.0,3.0,false,3,3,0x33,2024-01-03,1970-01-01T00:00:00.003Z,"};
String[] retArray = new String[] {"3,3,3.0,3.0,false,3,3,0x33,2024-01-03,3,"};
for (Map.Entry<String, String[]> expectedHeader : expectedHeaders.entrySet()) {
String y = expectedHeader.getKey();
resultSetEqualTest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ public void testMaxByWithDifferentXAndYInputTypes() {
"root.db.d1",
new String[] {"x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10"},
new String[] {"y1", "y2", "y3", "y4", "y7", "y9", "y10"});
String[] retArray =
new String[] {"3,3,3.0,3.0,false,3,3,0x33,2024-01-03,1970-01-01T00:00:00.003Z,"};
String[] retArray = new String[] {"3,3,3.0,3.0,false,3,3,0x33,2024-01-03,3,"};
for (Map.Entry<String, String[]> expectedHeader : expectedHeaders.entrySet()) {
String y = expectedHeader.getKey();
resultSetEqualTest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public void testSelectorFunctions() {
} else if (j == 5) {
assertEquals("2024-01-0" + (i + 1), resultSet.getString(7));
} else if (j == 6) {
assertEquals(String.format("1970-01-01T00:00:00.00%dZ", i), resultSet.getString(8));
assertEquals(String.valueOf(i), resultSet.getString(8));
}
}
}
Expand Down

0 comments on commit 8eb1a09

Please sign in to comment.