Adapt to ActionRequestBuilder#execute changes (elastic/x-pack-elasticsearch#1263)

Original commit: elastic/x-pack-elasticsearch@c2d7aa562c
This commit is contained in:
Luca Cavanna 2017-05-03 11:21:06 +02:00 committed by GitHub
parent 9d8fea9a32
commit 796e23a02a
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
*/
package org.elasticsearch.xpack.watcher.transport.action.delete;
import org.elasticsearch.action.ListenableActionFuture;
import org.elasticsearch.action.ActionFuture;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.test.http.MockResponse;
@ -91,7 +91,7 @@ public class DeleteWatchTests extends AbstractWatcherIntegrationTestCase {
.get();
assertThat(responseFuture.isCreated(), is(true));
ListenableActionFuture<ExecuteWatchResponse> executeWatchFuture =
ActionFuture<ExecuteWatchResponse> executeWatchFuture =
watcherClient().prepareExecuteWatch("_name").setRecordExecution(true).execute();
// without this sleep the delete operation might overtake the watch execution