[TEST] Don't assert on null value. It's fine to not always see an exception in this part of the test.
This commit is contained in:
parent
16fe948a15
commit
7bfb1dfcc1
|
@ -1460,8 +1460,8 @@ public class TranslogTests extends ESTestCase {
|
|||
}
|
||||
boolean atLeastOneFailed = false;
|
||||
for (Throwable ex : threadExceptions) {
|
||||
assertTrue(ex.toString(), ex instanceof IOException || ex instanceof AlreadyClosedException);
|
||||
if (ex != null) {
|
||||
assertTrue(ex.toString(), ex instanceof IOException || ex instanceof AlreadyClosedException);
|
||||
atLeastOneFailed = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue