You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2017/02/15 19:00:48 UTC
[44/52] [abbrv] lucene-solr:jira/solr-9858: LUCENE-7465: use the
right random instance otheerwise we hit creepy test failures
LUCENE-7465: use the right random instance otheerwise we hit creepy test failures
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/5ca3ca20
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5ca3ca20
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5ca3ca20
Branch: refs/heads/jira/solr-9858
Commit: 5ca3ca205234694224341331980216a07c8e518b
Parents: 2470fba
Author: Mike McCandless <mi...@apache.org>
Authored: Wed Feb 15 05:26:52 2017 -0500
Committer: Mike McCandless <mi...@apache.org>
Committed: Wed Feb 15 05:26:52 2017 -0500
----------------------------------------------------------------------
.../src/test/org/apache/lucene/analysis/core/TestRandomChains.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5ca3ca20/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
index 3a58bdd..34c31d2 100644
--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestRandomChains.java
@@ -499,7 +499,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
return DateFormat.getDateInstance(DateFormat.DEFAULT, randomLocale(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);
});
}};