From d71374e67ddeb1e8e1745cd93d9bee70b117fdc0 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sat, 29 Sep 2012 20:46:09 +0000 Subject: [PATCH] don't ratelimit AND throttle git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1391871 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/store/MockDirectoryWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java b/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java index 26e2d494096..2acb9c7eecf 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java +++ b/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java @@ -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"); }