don't ratelimit AND throttle

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1391871 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-09-29 20:46:09 +00:00
parent 536af60a26
commit d71374e67d
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ public class MockDirectoryWrapper extends BaseDirectoryWrapper {
// throttling REALLY slows down tests, so don't do it very often for SOMETIMES.
if (throttling == Throttling.ALWAYS ||
(throttling == Throttling.SOMETIMES && randomState.nextInt(50) == 0)) {
(throttling == Throttling.SOMETIMES && rateLimiter == null && randomState.nextInt(50) == 0)) {
if (LuceneTestCase.VERBOSE) {
System.out.println("MockDirectoryWrapper: throttling indexOutput");
}