mirror of https://github.com/apache/lucene.git
Change also the default LuceneTestCase to override runBare() instead of runTest(). This enables tests, to also monitor failures in random during setUp() and tearDown().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@806947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
64ed5f39a5
commit
47ddf173a7
|
@ -199,10 +199,11 @@ public abstract class LuceneTestCase extends TestCase {
|
|||
return new Random(seed);
|
||||
}
|
||||
|
||||
protected void runTest() throws Throwable {
|
||||
// @Override
|
||||
public void runBare() throws Throwable {
|
||||
try {
|
||||
seed = null;
|
||||
super.runTest();
|
||||
super.runBare();
|
||||
} catch (Throwable e) {
|
||||
if (seed != null) {
|
||||
System.out.println("NOTE: random seed of testcase '" + getName() + "' was: " + seed);
|
||||
|
|
Loading…
Reference in New Issue