You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2013/05/18 19:32:16 UTC
svn commit: r1484151 -
/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestMockDirectoryWrapper.java
Author: jpountz
Date: Sat May 18 17:32:15 2013
New Revision: 1484151
URL: http://svn.apache.org/r1484151
Log:
Fix TestMockDirectoryWrapper.testDiskFull (broken by last commit).
Modified:
lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestMockDirectoryWrapper.java
Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestMockDirectoryWrapper.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestMockDirectoryWrapper.java?rev=1484151&r1=1484150&r2=1484151&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestMockDirectoryWrapper.java (original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestMockDirectoryWrapper.java Sat May 18 17:32:15 2013
@@ -55,7 +55,7 @@ public class TestMockDirectoryWrapper ex
public void testDiskFull() throws IOException {
// test writeBytes
MockDirectoryWrapper dir = newMockDirectory();
- dir.setMaxSizeInBytes(2);
+ dir.setMaxSizeInBytes(3);
final byte[] bytes = new byte[] { 1, 2};
IndexOutput out = dir.createOutput("foo", IOContext.DEFAULT);
out.writeBytes(bytes, bytes.length); // first write should succeed
@@ -73,7 +73,7 @@ public class TestMockDirectoryWrapper ex
// test copyBytes
dir = newMockDirectory();
- dir.setMaxSizeInBytes(2);
+ dir.setMaxSizeInBytes(3);
out = dir.createOutput("foo", IOContext.DEFAULT);
out.copyBytes(new ByteArrayDataInput(bytes), bytes.length); // first copy should succeed
// flush() to ensure the written bytes are not buffered and counted