Skip to content

Commit f0c4adb

Browse files
committed
Revert "Work around testFilterByTags failure (elastic#125109)"
This reverts commit 23769da
1 parent 2fee4f1 commit f0c4adb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/discovery-ec2/src/test/java/org/elasticsearch/discovery/ec2/Ec2DiscoveryTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ protected List<TransportAddress> buildDynamicHosts(Settings nodeSettings, int no
103103
final String[] params = request.split("&");
104104
Arrays.stream(params).filter(entry -> entry.startsWith("Filter.") && entry.contains("=tag%3A")).forEach(entry -> {
105105
final int startIndex = "Filter.".length();
106-
// TODO ensure the filterId is an ASCII int when https://github.com/aws/aws-sdk-java-v2/issues/5968 fixed
107-
final var filterId = entry.substring(startIndex, entry.indexOf(".", startIndex));
106+
final int filterId = Integer.parseInt(entry.substring(startIndex, entry.indexOf(".", startIndex)));
108107
tagsIncluded.put(
109108
entry.substring(entry.indexOf("=tag%3A") + "=tag%3A".length()),
110109
Arrays.stream(params)

0 commit comments

Comments
 (0)