Skip to content

Commit ca916f7

Browse files
committed
[TEST] pause index following after test
1 parent c9c691b commit ca916f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ public void onFailure(Exception e) {
300300
// end::ccr-resume-follow-execute-async
301301

302302
assertTrue(latch.await(30L, TimeUnit.SECONDS));
303+
304+
// Cleanup:
305+
client.ccr().pauseFollow(new PauseFollowRequest(followIndex), RequestOptions.DEFAULT);
303306
}
304307

305308
public void testUnfollow() throws Exception {

0 commit comments

Comments
 (0)