Skip to content

Commit 4901c6a

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 94517c7 commit 4901c6a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5157,9 +5157,10 @@ public void testCloseShardWhileRetainingEngine() throws Exception {
51575157
assertThat(primary.state(), equalTo(IndexShardState.CLOSED));
51585158
expectThrows(AlreadyClosedException.class, () -> primary.getEngine());
51595159
assertThat(primary.getEngineOrNull(), nullValue());
5160-
expectThrows(AlreadyClosedException.class, () -> primary.withEngine(engine -> {
5161-
throw new AssertionError("should have thrown");
5162-
}));
5160+
expectThrows(
5161+
AlreadyClosedException.class,
5162+
() -> primary.withEngine(engine -> { throw new AssertionError("should have thrown"); })
5163+
);
51635164
primary.withEngineOrNull(engine -> {
51645165
assertThat(engine, nullValue());
51655166
return null;

0 commit comments

Comments
 (0)