mirror of https://github.com/apache/lucene.git
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:
parent
536af60a26
commit
d71374e67d
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue