Fail if ex null

This commit is contained in:
Ivannikov Kirill 2015-09-02 15:09:18 +05:00
parent dbf42ba297
commit d6bae589c8
1 changed files with 3 additions and 0 deletions

View File

@ -667,6 +667,9 @@ public class IndexShardTests extends ESSingleNodeTestCase {
shardIndexingService.addListener(new IndexingOperationListener() {
@Override
public void postIndex(Engine.Index index, Throwable ex) {
if (ex == null){
fail();
}
postIndexWithExceptionCalled.set(true);
super.postIndex(index, ex);
}