mirror of https://github.com/apache/lucene.git
LUCENE-7465: use the right random instance otheerwise we hit creepy test failures
This commit is contained in:
parent
2470fbaa0e
commit
5ca3ca2052
|
@ -499,7 +499,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
|
||||||
return DateFormat.getDateInstance(DateFormat.DEFAULT, randomLocale(random));
|
return DateFormat.getDateInstance(DateFormat.DEFAULT, randomLocale(random));
|
||||||
});
|
});
|
||||||
put(Automaton.class, random -> {
|
put(Automaton.class, random -> {
|
||||||
return Operations.determinize(new RegExp(AutomatonTestUtil.randomRegexp(random()), RegExp.NONE).toAutomaton(), Operations.DEFAULT_MAX_DETERMINIZED_STATES);
|
return Operations.determinize(new RegExp(AutomatonTestUtil.randomRegexp(random), RegExp.NONE).toAutomaton(), Operations.DEFAULT_MAX_DETERMINIZED_STATES);
|
||||||
});
|
});
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue