From d66d88c5cd0532b3af4d309fe9bf613e442a2b96 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 2 Nov 2017 00:14:27 -0400 Subject: [PATCH] Fix tset compile Test wasn't compiling after a change to core. Original commit: elastic/x-pack-elasticsearch@8017b29f0b569fb0cbc8305e9c66e730a3133579 --- .../xpack/ml/job/persistence/JobProviderTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/src/test/java/org/elasticsearch/xpack/ml/job/persistence/JobProviderTests.java b/plugin/src/test/java/org/elasticsearch/xpack/ml/job/persistence/JobProviderTests.java index 847f41b612a..62d1c04b274 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/ml/job/persistence/JobProviderTests.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/ml/job/persistence/JobProviderTests.java @@ -875,8 +875,9 @@ public class JobProviderTests extends ESTestCase { queryBuilderConsumer.accept(multiSearchRequest.requests().get(0).source().query()); @SuppressWarnings("unchecked") ActionListener actionListener = (ActionListener) 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());