From 22ee7d714876ff30d76d1b06cf27dc68d2f676fb Mon Sep 17 00:00:00 2001 From: David Roberts Date: Thu, 28 Sep 2023 17:49:39 +0100 Subject: [PATCH] Simplify --- .../org/elasticsearch/xpack/ml/job/JobNodeSelectorTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/job/JobNodeSelectorTests.java b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/job/JobNodeSelectorTests.java index 589d91da6c638..ab815aad543b8 100644 --- a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/job/JobNodeSelectorTests.java +++ b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/job/JobNodeSelectorTests.java @@ -96,7 +96,7 @@ public void testNodeNameAndVersionForOldNode() { ta, attributes, ROLES_WITH_ML, - VersionInformation.inferVersions(Version.fromString("8.7.0")) + VersionInformation.inferVersions(Version.V_8_7_0) ); assertEquals("{_node_name2}{ML config version=8.7.0}", JobNodeSelector.nodeNameAndVersion(node)); }