Skip to content

Commit 8554e19

Browse files
authored
Fix ForkIT.testProfile test (#128398)
1 parent f76e201 commit 8554e19

File tree

1 file changed

+4
-4
lines changed
  • x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action

1 file changed

+4
-4
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/ForkIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
import java.util.Arrays;
1919
import java.util.Iterator;
2020
import java.util.List;
21+
import java.util.Set;
2122
import java.util.function.Predicate;
23+
import java.util.stream.Collectors;
2224

2325
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
2426
import static org.elasticsearch.xpack.esql.EsqlTestUtils.getValuesList;
@@ -751,11 +753,9 @@ public void testProfile() {
751753
EsqlQueryResponse.Profile profile = resp.profile();
752754
assertNotNull(profile);
753755

754-
List<String> descriptions = profile.drivers().stream().map(DriverProfile::description).sorted().toList();
755-
756756
assertEquals(
757-
List.of("data", "data", "main.final", "node_reduce", "node_reduce", "subplan-0.final", "subplan-1.final"),
758-
descriptions
757+
Set.of("data", "main.final", "node_reduce", "subplan-0.final", "subplan-1.final"),
758+
profile.drivers().stream().map(DriverProfile::description).collect(Collectors.toSet())
759759
);
760760
}
761761
}

0 commit comments

Comments
 (0)