fix slow TestXXXPostingsFormat tests

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1391875 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-09-29 20:59:22 +00:00
parent d71374e67d
commit fb89fcd95a

View File

@ -78,7 +78,7 @@ public class MockIndexOutputWrapper extends IndexOutput {
long freeSpace = dir.maxSize == 0 ? 0 : dir.maxSize - dir.sizeInBytes();
long realUsage = 0;
if (dir.rateLimiter != null && len >= 10) {
if (dir.rateLimiter != null && len >= 1000) {
dir.rateLimiter.pause(len);
}