Skip to content

Commit

Permalink
Fix cluster version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuescher committed Nov 27, 2024
1 parent 1351e2e commit 4d35161
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ private static void checkClusterVersion(RestClient client, Version version) thro
// check expected Cluster version
Request infoRequest = new Request("GET", "/");
Response response = assertOK(client.performRequest(infoRequest));
assertEquals(version.toString(), ObjectPath.createFromResponse(response).evaluate("version.number"));
assertEquals(
version.toString(),
((String) ObjectPath.createFromResponse(response).evaluate("version.number")).replace("-SNAPSHOT", "")
);
}

@Override
Expand Down

0 comments on commit 4d35161

Please sign in to comment.