Skip to content

Commit 0d9ef13

Browse files
committed
minor test fix
1 parent ec0da9e commit 0d9ef13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/action/filter/ShardBulkInferenceActionFilterTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ public void testItemFailures() throws Exception {
278278
failure = bulkShardRequest.items()[2].getPrimaryResponse().getFailure();
279279
assertThat(failure.getCause().getCause().getMessage(), containsString("inference exception"));
280280
assertThat(failure.getCause().getCause().getCause().getMessage(), containsString("boom"));
281+
assertThat(failure.getStatus(), is(RestStatus.BAD_REQUEST));
281282
} finally {
282283
chainExecuted.countDown();
283284
}

0 commit comments

Comments
 (0)