mirror of https://github.com/apache/lucene.git
Re-enable backwards compatibility tests for version >=10
This commit is contained in:
parent
3d6af9cecc
commit
352d85cbe4
|
@ -115,9 +115,6 @@ public abstract class BackwardsCompatibilityTestBase extends LuceneTestCase {
|
||||||
*/
|
*/
|
||||||
protected BackwardsCompatibilityTestBase(
|
protected BackwardsCompatibilityTestBase(
|
||||||
@Name("version") Version version, @Name("pattern") String indexPattern) {
|
@Name("version") Version version, @Name("pattern") String indexPattern) {
|
||||||
// TODO: add 10.0.0 bw indices after 10.0.0 has been released, see
|
|
||||||
// https://github.com/apache/lucene/issues/13847
|
|
||||||
assumeTrue("Can only test with 10.0.0 has been released", version.major < 10);
|
|
||||||
this.version = version;
|
this.version = version;
|
||||||
this.indexPattern = indexPattern;
|
this.indexPattern = indexPattern;
|
||||||
}
|
}
|
||||||
|
|
|
@ -832,7 +832,7 @@ public class TestBasicBackwardsCompatibility extends BackwardsCompatibilityTestB
|
||||||
expectThrows(IllegalArgumentException.class, () -> TestUtil.addIndexesSlowly(w, reader));
|
expectThrows(IllegalArgumentException.class, () -> TestUtil.addIndexesSlowly(w, reader));
|
||||||
assertEquals(
|
assertEquals(
|
||||||
e.getMessage(),
|
e.getMessage(),
|
||||||
"Cannot merge a segment that has been created with major version 9 into this index which has been created by major version 10");
|
"Cannot merge a segment that has been created with major version 10 into this index which has been created by major version 11");
|
||||||
w.close();
|
w.close();
|
||||||
targetDir2.close();
|
targetDir2.close();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue