Skip to content

Commit

Permalink
Merge pull request apache#3422 from wang3820/fix-flaky-databaselookup
Browse files Browse the repository at this point in the history
Fixed flaky test due to use of HashSet in DatabaseLookupMetaTest#testProvidesModelerMeta
  • Loading branch information
hansva authored Nov 21, 2023
2 parents 96cfd6a + 81eb002 commit 1a276ed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import org.apache.hop.pipeline.transform.TransformMeta;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

Expand Down Expand Up @@ -444,7 +444,7 @@ public String getSchemaName() {

@Override
public List<String> getDatabaseFields() {
Set<String> fields = new HashSet<>();
Set<String> fields = new LinkedHashSet<>();
for (KeyField keyField : lookup.getKeyFields()) {
if (StringUtils.isNotEmpty(keyField.getTableField())) {
fields.add(keyField.getTableField());
Expand All @@ -460,7 +460,7 @@ public List<String> getDatabaseFields() {

@Override
public List<String> getStreamFields() {
Set<String> fields = new HashSet<>();
Set<String> fields = new LinkedHashSet<>();
for (KeyField keyField : lookup.getKeyFields()) {
if (StringUtils.isNotEmpty(keyField.getStreamField1())) {
fields.add(keyField.getStreamField1());
Expand Down

0 comments on commit 1a276ed

Please sign in to comment.