Skip to content

Commit bc66de5

Browse files
Addressing feedback
1 parent 50ee84f commit bc66de5

File tree

1 file changed

+0
-2
lines changed
  • x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/integration

1 file changed

+0
-2
lines changed

x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/integration/ModelRegistryIT.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,6 @@ public void testStoreModels_Adds_OutOfSyncEndpoints_ToClusterState() {
931931
// Storing the model fails because it already exists, but the registry should now be aware of the inference id in
932932
// cluster state
933933
var cause = response.get(0).failureCause();
934-
assertNotNull(cause);
935934
assertThat(cause, instanceOf(VersionConflictEngineException.class));
936935
assertThat(cause.getMessage(), containsString("[model_1]: version conflict, document already exists"));
937936

@@ -1153,7 +1152,6 @@ private void storeCorruptedModelThenStoreModel(boolean storeSecrets) {
11531152
private void assertIndicesContainExpectedDocsCount(Model model, int numberOfDocs) {
11541153
SearchRequest modelSearch = client().prepareSearch(InferenceIndex.INDEX_PATTERN, InferenceSecretsIndex.INDEX_PATTERN)
11551154
.setQuery(QueryBuilders.constantScoreQuery(QueryBuilders.idsQuery().addIds(Model.documentId(model.getInferenceEntityId()))))
1156-
.setSize(2)
11571155
.setTrackTotalHits(false)
11581156
.request();
11591157
SearchResponse searchResponse = client().search(modelSearch).actionGet(TimeValue.THIRTY_SECONDS);

0 commit comments

Comments
 (0)