LUCENE-7465: use the right random instance otheerwise we hit creepy test failures

This commit is contained in:
Mike McCandless 2017-02-15 05:26:52 -05:00
parent 2470fbaa0e
commit 5ca3ca2052
1 changed files with 1 additions and 1 deletions

View File

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