@@ -271,10 +271,9 @@ public void testFromXContentWithShards() throws IOException {
271271 }
272272 }
273273
274- //TODO rename method and adapt versions after backport
275- public void testReadFromPre70 () throws IOException {
274+ public void testReadFromPre6_6_0 () throws IOException {
276275 try (StreamInput in = StreamInput .wrap (Base64 .getDecoder ().decode ("AQC/gAAAAAA=" ))) {
277- in .setVersion (VersionUtils .randomVersionBetween (random (), Version .V_6_0_0 , VersionUtils .getPreviousVersion (Version .V_7_0_0 )));
276+ in .setVersion (VersionUtils .randomVersionBetween (random (), Version .V_6_0_0 , VersionUtils .getPreviousVersion (Version .V_6_6_0 )));
278277 SearchHits searchHits = new SearchHits ();
279278 searchHits .readFrom (in );
280279 assertEquals (0 , searchHits .getHits ().length );
@@ -288,9 +287,8 @@ public void testReadFromPre70() throws IOException {
288287 }
289288 }
290289
291- //TODO rename method and adapt versions after backport
292- public void testSerializationPre70 () throws IOException {
293- Version version = VersionUtils .randomVersionBetween (random (), Version .V_6_0_0 , VersionUtils .getPreviousVersion (Version .V_7_0_0 ));
290+ public void testSerializationPre6_6_0 () throws IOException {
291+ Version version = VersionUtils .randomVersionBetween (random (), Version .V_6_0_0 , VersionUtils .getPreviousVersion (Version .V_6_6_0 ));
294292 SearchHits original = createTestItem (randomFrom (XContentType .values ()), false , true , TotalHits .Relation .EQUAL_TO );
295293 SearchHits deserialized = copyInstance (original , version );
296294 assertArrayEquals (original .getHits (), deserialized .getHits ());
0 commit comments