assertNotNull
This commit is contained in:
parent
d6bae589c8
commit
d33f7dba61
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue