Skip to content

Commit c4eb02d

Browse files
committed
Apply missing backport of elastic#48985
1 parent c8b36b3 commit c4eb02d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/ml/qa/native-multi-node-tests/src/test/java/org/elasticsearch/xpack/ml/integration/MlNativeDataFrameAnalyticsIntegTestCase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.elasticsearch.action.search.SearchResponse;
1515
import org.elasticsearch.action.support.master.AcknowledgedResponse;
1616
import org.elasticsearch.common.Nullable;
17+
import org.elasticsearch.common.Strings;
1718
import org.elasticsearch.common.unit.TimeValue;
1819
import org.elasticsearch.index.query.QueryBuilders;
1920
import org.elasticsearch.search.sort.SortOrder;
@@ -202,7 +203,7 @@ protected void assertInferenceModelPersisted(String jobId) {
202203
SearchResponse searchResponse = client().prepareSearch(InferenceIndexConstants.LATEST_INDEX_NAME)
203204
.setQuery(QueryBuilders.boolQuery().filter(QueryBuilders.termQuery(TrainedModelConfig.TAGS.getPreferredName(), jobId)))
204205
.get();
205-
assertThat(searchResponse.getHits().getHits(), arrayWithSize(1));
206+
assertThat("Hits were: " + Strings.toString(searchResponse.getHits()), searchResponse.getHits().getHits(), arrayWithSize(1));
206207
}
207208

208209
/**

0 commit comments

Comments
 (0)