Skip to content

Commit a183f89

Browse files
Remove Failing and Outdated GeoTile BwC Test (#62849)
This test is failing randomly since it tests outdated BwC that was removed in #62072.
1 parent bd8701d commit a183f89

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

server/src/test/java/org/elasticsearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilderTests.java

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,12 @@
1919

2020
package org.elasticsearch.search.aggregations.bucket.composite;
2121

22-
import org.elasticsearch.Version;
23-
import org.elasticsearch.common.geo.GeoBoundingBox;
24-
import org.elasticsearch.common.geo.GeoBoundingBoxTests;
25-
import org.elasticsearch.common.geo.GeoPoint;
26-
import org.elasticsearch.common.io.stream.BytesStreamOutput;
27-
import org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput;
28-
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
29-
import org.elasticsearch.common.io.stream.StreamInput;
3022
import org.elasticsearch.test.ESTestCase;
31-
import org.elasticsearch.test.VersionUtils;
32-
33-
import java.io.IOException;
34-
import java.util.Collections;
35-
36-
import static org.hamcrest.Matchers.equalTo;
3723

3824
public class GeoTileGridValuesSourceBuilderTests extends ESTestCase {
3925

4026
public void testSetFormat() {
4127
CompositeValuesSourceBuilder<?> builder = new GeoTileGridValuesSourceBuilder("name");
4228
expectThrows(IllegalArgumentException.class, () -> builder.format("format"));
4329
}
44-
45-
public void testBWCBounds() throws IOException {
46-
Version noBoundsSupportVersion = VersionUtils.randomVersionBetween(random(), Version.V_7_0_0, Version.V_7_5_0);
47-
GeoTileGridValuesSourceBuilder builder = new GeoTileGridValuesSourceBuilder("name");
48-
if (randomBoolean()) {
49-
builder.geoBoundingBox(GeoBoundingBoxTests.randomBBox());
50-
}
51-
try (BytesStreamOutput output = new BytesStreamOutput()) {
52-
output.setVersion(Version.V_7_6_0);
53-
builder.writeTo(output);
54-
try (StreamInput in = new NamedWriteableAwareStreamInput(output.bytes().streamInput(),
55-
new NamedWriteableRegistry(Collections.emptyList()))) {
56-
in.setVersion(noBoundsSupportVersion);
57-
GeoTileGridValuesSourceBuilder readBuilder = new GeoTileGridValuesSourceBuilder(in);
58-
assertThat(readBuilder.geoBoundingBox(), equalTo(new GeoBoundingBox(
59-
new GeoPoint(Double.NaN, Double.NaN), new GeoPoint(Double.NaN, Double.NaN))));
60-
}
61-
}
62-
}
6330
}

0 commit comments

Comments
 (0)