This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/master by this push:
new 45df662944 Fixed flaky test
new 47e0179855 Merge pull request #3443 from wang3820/fix-flaky
45df662944 is described below
commit 45df66294437da0a8dbb1d611b34afda48408d3b
Author: Tong Wang <[email protected]>
AuthorDate: Tue Nov 21 14:43:41 2023 -0500
Fixed flaky test
---
.../apache/hop/pipeline/transforms/propertyinput/BaseParsingTest.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/plugins/transforms/propertyinput/src/test/java/org/apache/hop/pipeline/transforms/propertyinput/BaseParsingTest.java
b/plugins/transforms/propertyinput/src/test/java/org/apache/hop/pipeline/transforms/propertyinput/BaseParsingTest.java
index 04a3f34c3f..536a416a85 100644
---
a/plugins/transforms/propertyinput/src/test/java/org/apache/hop/pipeline/transforms/propertyinput/BaseParsingTest.java
+++
b/plugins/transforms/propertyinput/src/test/java/org/apache/hop/pipeline/transforms/propertyinput/BaseParsingTest.java
@@ -146,6 +146,8 @@ public abstract class BaseParsingTest<
* 1"}, { "field 1 value in row 2","field 2 value in row 2"} }
*/
protected void checkContent(Object[][] expected) throws Exception {
+ rows.sort((o1, o2) -> Arrays.toString(o1).compareTo(Arrays.toString(o2)));
+ Arrays.sort(expected, (o1, o2) ->
Arrays.toString(o1).compareTo(Arrays.toString(o2)));
for (int i = 0; i < expected.length; i++) {
assertArrayEquals("Wrong row: " + Arrays.asList(rows.get(i)),
expected[i], rows.get(i));
}