Fix tset compile
Test wasn't compiling after a change to core. Original commit: elastic/x-pack-elasticsearch@8017b29f0b
This commit is contained in:
parent
400184bd1c
commit
d66d88c5cd
|
@ -875,8 +875,9 @@ public class JobProviderTests extends ESTestCase {
|
||||||
queryBuilderConsumer.accept(multiSearchRequest.requests().get(0).source().query());
|
queryBuilderConsumer.accept(multiSearchRequest.requests().get(0).source().query());
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
ActionListener<MultiSearchResponse> actionListener = (ActionListener<MultiSearchResponse>) invocationOnMock.getArguments()[1];
|
ActionListener<MultiSearchResponse> actionListener = (ActionListener<MultiSearchResponse>) invocationOnMock.getArguments()[1];
|
||||||
MultiSearchResponse mresponse =
|
MultiSearchResponse mresponse = new MultiSearchResponse(
|
||||||
new MultiSearchResponse(new MultiSearchResponse.Item[]{new MultiSearchResponse.Item(response, null)});
|
new MultiSearchResponse.Item[]{new MultiSearchResponse.Item(response, null)},
|
||||||
|
randomNonNegativeLong());
|
||||||
actionListener.onResponse(mresponse);
|
actionListener.onResponse(mresponse);
|
||||||
return null;
|
return null;
|
||||||
}).when(client).multiSearch(any(), any());
|
}).when(client).multiSearch(any(), any());
|
||||||
|
|
Loading…
Reference in New Issue