Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuescher committed Oct 30, 2023
1 parent fbffc2f commit f1027e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ public void testSerialization() throws IOException {
);

final Suggest suggest = createTestItem();
// if bwc version is below V_8_8_0 we need to make sure potential
// search hits in CompletionSuggestion$Entry$Option don't have "rank" set
// TODO remove this once MINIMUM_COMPATIBLE > V_8_8_0
// suggest is disallowed when using rank, but the randomization rarely sets it
// we need to make sure CompletionSuggestion$Entry$Option doesn't have "rank" set
// because for some older versions it will not serialize.
if (bwcVersion.before(TransportVersions.V_8_8_0)) {
for (CompletionSuggestion s : suggest.filter(CompletionSuggestion.class)) {
for (CompletionSuggestion.Entry entry : s.entries) {
Expand Down

0 comments on commit f1027e9

Please sign in to comment.