File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
server/src/test/java/org/elasticsearch/index/shard Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments