Fix tset compile

Test wasn't compiling after a change to core.

Original commit: elastic/x-pack-elasticsearch@8017b29f0b
This commit is contained in:
Nik Everett 2017-11-02 00:14:27 -04:00
parent 400184bd1c
commit d66d88c5cd
1 changed files with 3 additions and 2 deletions

View File

@ -875,8 +875,9 @@ public class JobProviderTests extends ESTestCase {
queryBuilderConsumer.accept(multiSearchRequest.requests().get(0).source().query());
@SuppressWarnings("unchecked")
ActionListener<MultiSearchResponse> actionListener = (ActionListener<MultiSearchResponse>) invocationOnMock.getArguments()[1];
MultiSearchResponse mresponse =
new MultiSearchResponse(new MultiSearchResponse.Item[]{new MultiSearchResponse.Item(response, null)});
MultiSearchResponse mresponse = new MultiSearchResponse(
new MultiSearchResponse.Item[]{new MultiSearchResponse.Item(response, null)},
randomNonNegativeLong());
actionListener.onResponse(mresponse);
return null;
}).when(client).multiSearch(any(), any());