From 9479242fb7f2ed511ef747fac3609dd7453e1978 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 7 Apr 2011 15:05:28 +0000 Subject: [PATCH] make this slooow test less evil when not running nightly git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1089906 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java b/lucene/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java index 929bebc145f..e0f93e738a8 100644 --- a/lucene/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java +++ b/lucene/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java @@ -120,7 +120,7 @@ public class TestIndexWriterOnDiskFull extends LuceneTestCase { dir.close(); // Now try again w/ more space: - diskFree += _TestUtil.nextInt(random, 400, 600); + diskFree += TEST_NIGHTLY ? _TestUtil.nextInt(random, 400, 600) : _TestUtil.nextInt(random, 3000, 5000); } else { //_TestUtil.syncConcurrentMerges(writer); dir.setMaxSizeInBytes(0);