fix verify version constants

This commit is contained in:
Alpar Torok 2019-02-07 15:46:36 +02:00
parent 73fcea4d2c
commit 7e10592940
1 changed files with 1 additions and 1 deletions

View File

@ -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));