From a399fa877cfe0bd063631d0de96c7fe3e96006ed Mon Sep 17 00:00:00 2001 From: Simon Cooper Date: Wed, 30 Aug 2023 09:51:55 +0100 Subject: [PATCH] Update test version check to also include 8.10 patch releases (#99004) --- .../upgrades/ParameterizedFullClusterRestartTestCase.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/ParameterizedFullClusterRestartTestCase.java b/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/ParameterizedFullClusterRestartTestCase.java index bb22311337cc0..4609b27db2909 100644 --- a/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/ParameterizedFullClusterRestartTestCase.java +++ b/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/ParameterizedFullClusterRestartTestCase.java @@ -24,7 +24,7 @@ import static org.elasticsearch.upgrades.FullClusterRestartUpgradeStatus.OLD; import static org.elasticsearch.upgrades.FullClusterRestartUpgradeStatus.UPGRADED; -import static org.hamcrest.Matchers.lessThanOrEqualTo; +import static org.hamcrest.Matchers.lessThan; @TestCaseOrdering(FullClusterRestartTestOrdering.class) public abstract class ParameterizedFullClusterRestartTestCase extends ESRestTestCase { @@ -85,11 +85,7 @@ public static IndexVersion getOldClusterIndexVersion() { if (version.equals(org.elasticsearch.Version.CURRENT)) { return IndexVersion.current(); } else { - assertThat( - "Index version needs to be added to restart test parameters", - version, - lessThanOrEqualTo(org.elasticsearch.Version.V_8_10_0) - ); + assertThat("Index version needs to be added to restart test parameters", version, lessThan(org.elasticsearch.Version.V_8_11_0)); return IndexVersion.fromId(version.id); } }