From 7c91c7a6381e4db757fae2192530a622244847b0 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Sun, 30 Sep 2018 19:31:30 +0200 Subject: [PATCH] fixed test compile error --- .../java/org/elasticsearch/xpack/ccr/ShardChangesIT.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/ShardChangesIT.java b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/ShardChangesIT.java index 2f383207a59..bcd89663ff8 100644 --- a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/ShardChangesIT.java +++ b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/ShardChangesIT.java @@ -655,9 +655,8 @@ public class ShardChangesIT extends ESIntegTestCase { public void testUnfollowIndex() throws Exception { String leaderIndexSettings = getIndexSettings(1, 0, singletonMap(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), "true")); assertAcked(client().admin().indices().prepareCreate("index1").setSource(leaderIndexSettings, XContentType.JSON).get()); - ResumeFollowAction.Request followRequest = createFollowRequest("index1", "index2"); - PutFollowAction.Request createAndFollowRequest = new PutFollowAction.Request(followRequest); - client().execute(PutFollowAction.INSTANCE, createAndFollowRequest).get(); + PutFollowAction.Request followRequest = follow("index1", "index2"); + client().execute(PutFollowAction.INSTANCE, followRequest).get(); client().prepareIndex("index1", "doc").setSource("{}", XContentType.JSON).get(); assertBusy(() -> { assertThat(client().prepareSearch("index2").get().getHits().getTotalHits(), equalTo(1L));