Skip to content

Commit

Permalink
Fixed flaky tests for RerunFormatter (#2940)
Browse files Browse the repository at this point in the history
root cause: Unordered Entries in featureAndFailedLinesMapping
  • Loading branch information
hermya authored Nov 5, 2024
1 parent e0546fd commit 2e5694f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.net.URI;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

import static io.cucumber.core.feature.FeatureWithLines.create;
Expand All @@ -24,7 +24,7 @@
public final class RerunFormatter implements ConcurrentEventListener {

private final UTF8PrintWriter out;
private final Map<URI, Collection<Integer>> featureAndFailedLinesMapping = new HashMap<>();
private final Map<URI, Collection<Integer>> featureAndFailedLinesMapping = new LinkedHashMap<>();

public RerunFormatter(OutputStream out) {
this.out = new UTF8PrintWriter(out);
Expand Down

0 comments on commit 2e5694f

Please sign in to comment.