Skip to content

Commit

Permalink
Hardcode version condition instead of calling minimumCompatibilityVer…
Browse files Browse the repository at this point in the history
…sion() (elastic#100102)

This is one of the few uses of Version#minimumCompatibilityVersion that isn't covered by other planned work. Since the minimum compatibility version for 7.14.0 is always going to be 6.8.0, we can just hardcode the value.
  • Loading branch information
williamrandolph authored Oct 2, 2023
1 parent 00e4dfc commit 04e478a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,7 @@ public void testTransportCompressionSetting() throws IOException {
assumeTrue("the old transport.compress setting existed before 7.14", getOldClusterVersion().before(Version.V_7_14_0));
assumeTrue(
"Early versions of 6.x do not have cluster.remote* prefixed settings",
getOldClusterVersion().onOrAfter(Version.V_7_14_0.minimumCompatibilityVersion())
getOldClusterVersion().onOrAfter(Version.fromString("6.8.0"))
);
if (isRunningAgainstOldCluster()) {
final Request putSettingsRequest = new Request("PUT", "/_cluster/settings");
Expand Down

0 comments on commit 04e478a

Please sign in to comment.