[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:
Simon Willnauer 2016-02-07 19:58:03 +01:00
parent 16fe948a15
commit 7bfb1dfcc1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}