Skip to content

Commit

Permalink
Change IP-addresses in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
51-code committed Jun 10, 2024
1 parent e5e0d91 commit 46deb4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/SortOperationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ public void testTwoSortByClauseDescending_IP() {
// should be first sorted by partition and then in those partitions sorted by IP
Assertions.assertEquals("[3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]",
Arrays.toString(partition.stream().map(r -> r.getAs(0).toString()).toArray()));
Assertions.assertEquals("[192.168.1.4, 192.168.1.3, 192.168.1.2, 192.168.1.1, 192.168.1.0, 192.168.1.4, " +
"192.168.1.3, 192.168.1.2, 192.168.1.1, 192.168.1.0, 192.168.1.4, 192.168.1.3, 192.168.1.2, " +
"192.168.1.1, 192.168.1.0, 192.168.1.4, 192.168.1.3, 192.168.1.2, 192.168.1.1, 192.168.1.0]",
Assertions.assertEquals("[127.0.0.4, 127.0.0.3, 127.0.0.2, 127.0.0.1, 127.0.0.0, 127.0.0.4, " +
"127.0.0.3, 127.0.0.2, 127.0.0.1, 127.0.0.0, 127.0.0.4, 127.0.0.3, 127.0.0.2, " +
"127.0.0.1, 127.0.0.0, 127.0.0.4, 127.0.0.3, 127.0.0.2, 127.0.0.1, 127.0.0.0]",
Arrays.toString(ip.stream().map(r -> r.getAs(0).toString()).toArray()));

Assertions.assertEquals(20, partition.size());
Expand Down Expand Up @@ -278,7 +278,7 @@ private void createData(BatchCollect batchCollect, SQLContext sqlContext) {
"input",
String.valueOf(run),
counter,
"192.168.1." + counter,
"127.0.0." + counter,
1
)
);
Expand Down

0 comments on commit 46deb4a

Please sign in to comment.