don't use assume here

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1351879 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-06-19 22:03:38 +00:00
parent 90cdc559d8
commit 5cd8d27ba4
1 changed files with 5 additions and 6 deletions

View File

@ -49,7 +49,6 @@ import org.apache.lucene.util.LineFileDocs;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.Rethrow;
import org.apache.lucene.util._TestUtil;
import org.junit.Assume;
/**
* Base class for all Lucene unit tests that use TokenStreams.
@ -438,11 +437,11 @@ public abstract class BaseTokenStreamTestCase extends LuceneTestCase {
boolean useCharFilter = random.nextBoolean();
Directory dir = null;
RandomIndexWriter iw = null;
if (rarely(random)) {
final String postingsFormat = _TestUtil.getPostingsFormat("dummy");
Assume.assumeTrue(iterations * maxWordLength < 100000 ||
!(postingsFormat.equals("Memory") ||
postingsFormat.equals("SimpleText")));
final String postingsFormat = _TestUtil.getPostingsFormat("dummy");
boolean codecOk = iterations * maxWordLength < 100000 ||
!(postingsFormat.equals("Memory") ||
postingsFormat.equals("SimpleText"));
if (rarely(random) && codecOk) {
dir = newFSDirectory(_TestUtil.getTempDir("bttc"));
iw = new RandomIndexWriter(new Random(seed), dir, a);
}