Skip to content

Commit 4dec72f

Browse files
committed
spotless
1 parent 11759e7 commit 4dec72f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import org.elasticsearch.xpack.core.XPackField;
5454
import org.elasticsearch.xpack.core.inference.results.ChunkedInferenceEmbedding;
5555
import org.elasticsearch.xpack.core.inference.results.ChunkedInferenceError;
56-
import org.elasticsearch.xpack.inference.InferenceException;
5756
import org.elasticsearch.xpack.inference.InferencePlugin;
5857
import org.elasticsearch.xpack.inference.mapper.SemanticTextField;
5958
import org.elasticsearch.xpack.inference.model.TestModel;
@@ -239,10 +238,7 @@ public void testItemFailures() throws Exception {
239238
useLegacyFormat,
240239
true
241240
);
242-
model.putResult(
243-
"I am a failure",
244-
new ChunkedInferenceError(new IllegalArgumentException("boom"))
245-
);
241+
model.putResult("I am a failure", new ChunkedInferenceError(new IllegalArgumentException("boom")));
246242
model.putResult("I am a success", randomChunkedInferenceEmbeddingSparse(List.of("I am a success")));
247243
CountDownLatch chainExecuted = new CountDownLatch(1);
248244
ActionFilterChain actionFilterChain = (task, action, request, listener) -> {

0 commit comments

Comments
 (0)