assertNotNull

This commit is contained in:
Ivannikov Kirill 2015-09-02 16:59:49 +05:00
parent d6bae589c8
commit d33f7dba61
1 changed files with 1 additions and 3 deletions

View File

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