mirror of https://github.com/apache/lucene.git
fix test bug that's hiding another failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1693107 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
65b595add4
commit
c01f6b745b
|
@ -485,7 +485,7 @@ public class TestIndexFileDeleter extends LuceneTestCase {
|
||||||
w.addDocument(doc);
|
w.addDocument(doc);
|
||||||
}
|
}
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
if (t.toString().contains("fake fail") || t.getCause().toString().contains("fake fail")) {
|
if (t.toString().contains("fake fail") || (t.getCause() != null && t.getCause().toString().contains("fake fail"))) {
|
||||||
// ok
|
// ok
|
||||||
} else {
|
} else {
|
||||||
throw t;
|
throw t;
|
||||||
|
|
Loading…
Reference in New Issue