Skip to content

Commit af4864c

Browse files
authored
Fix flaky test addSnapshotLifecyclePolicy (#46881)
* addSnapshotLifecyclePolicy drop version assertion This drops the assertion on the policy version (which was pinned to 1L) as we want to execute both put policy apis (sync and async) for documentation purposes. This will sometimes (depending on the async call) yield a version of 2L. Waiting for the async call to always complete could be an option but the test is already rather slow and it's a bit of an overkill as we're already verifying the policy was created.
1 parent 5dc4dc6 commit af4864c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/ILMDocumentationIT.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ public void onFailure(Exception e) {
874874

875875
assertNotNull(policyMeta);
876876
assertThat(retrievedPolicy, equalTo(policy));
877-
assertThat(policyVersion, equalTo(1L));
878877

879878
createIndex("idx", Settings.builder().put("index.number_of_shards", 1).build());
880879

0 commit comments

Comments
 (0)