fix verify version constants
This commit is contained in:
parent
73fcea4d2c
commit
7e10592940
|
@ -37,7 +37,7 @@ public class VerifyVersionConstantsIT extends ESRestTestCase {
|
|||
assertThat(response.getStatusLine().getStatusCode(), equalTo(200));
|
||||
final ObjectPath objectPath = ObjectPath.createFromResponse(response);
|
||||
final String elasticsearchVersionString = objectPath.evaluate("version.number").toString();
|
||||
final Version elasticsearchVersion = Version.fromString(elasticsearchVersionString);
|
||||
final Version elasticsearchVersion = Version.fromString(elasticsearchVersionString.replace("-SNAPSHOT", ""));
|
||||
final String luceneVersionString = objectPath.evaluate("version.lucene_version").toString();
|
||||
final org.apache.lucene.util.Version luceneVersion = org.apache.lucene.util.Version.parse(luceneVersionString);
|
||||
assertThat(elasticsearchVersion.luceneVersion, equalTo(luceneVersion));
|
||||
|
|
Loading…
Reference in New Issue