Skip to content

Commit b419e4c

Browse files
committed
spotless
1 parent 1ecfb12 commit b419e4c

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

server/src/internalClusterTest/java/org/elasticsearch/synonyms/SynonymsManagementAPIServiceIT.java

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -356,25 +356,20 @@ public void onFailure(Exception e) {
356356

357357
// Update a rule fails
358358
CountDownLatch updateLatch = new CountDownLatch(1);
359-
synonymsManagementAPIService.putSynonymRule(
360-
synonymSetId,
361-
randomSynonymRule(randomIdentifier()),
362-
timeout,
363-
new ActionListener<>() {
364-
@Override
365-
public void onResponse(SynonymsManagementAPIService.SynonymsReloadResult synonymsReloadResult) {
366-
fail("Shouldn't have been able to update synonyms with a timeout in synonyms index health");
367-
}
359+
synonymsManagementAPIService.putSynonymRule(synonymSetId, randomSynonymRule(randomIdentifier()), timeout, new ActionListener<>() {
360+
@Override
361+
public void onResponse(SynonymsManagementAPIService.SynonymsReloadResult synonymsReloadResult) {
362+
fail("Shouldn't have been able to update synonyms with a timeout in synonyms index health");
363+
}
368364

369-
@Override
370-
public void onFailure(Exception e) {
371-
// Expected
372-
assertTrue(e instanceof IndexCreationException);
373-
assertTrue(e.getMessage().contains("synonyms index [.synonyms] is not searchable"));
374-
updateLatch.countDown();
375-
}
365+
@Override
366+
public void onFailure(Exception e) {
367+
// Expected
368+
assertTrue(e instanceof IndexCreationException);
369+
assertTrue(e.getMessage().contains("synonyms index [.synonyms] is not searchable"));
370+
updateLatch.countDown();
376371
}
377-
);
372+
});
378373

379374
updateLatch.await(5, TimeUnit.SECONDS);
380375

0 commit comments

Comments
 (0)