You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2011/12/25 05:24:06 UTC
svn commit: r1223047 -
/lucene/dev/trunk/modules/suggest/src/test/org/apache/lucene/search/suggest/fst/TestSort.java
Author: rmuir
Date: Sun Dec 25 04:24:06 2011
New Revision: 1223047
URL: http://svn.apache.org/viewvc?rev=1223047&view=rev
Log:
don't allocate 128MB of ram in this assert
Modified:
lucene/dev/trunk/modules/suggest/src/test/org/apache/lucene/search/suggest/fst/TestSort.java
Modified: lucene/dev/trunk/modules/suggest/src/test/org/apache/lucene/search/suggest/fst/TestSort.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/modules/suggest/src/test/org/apache/lucene/search/suggest/fst/TestSort.java?rev=1223047&r1=1223046&r2=1223047&view=diff
==============================================================================
--- lucene/dev/trunk/modules/suggest/src/test/org/apache/lucene/search/suggest/fst/TestSort.java (original)
+++ lucene/dev/trunk/modules/suggest/src/test/org/apache/lucene/search/suggest/fst/TestSort.java Sun Dec 25 04:24:06 2011
@@ -100,8 +100,8 @@ public class TestSort extends LuceneTest
private void assertFilesIdentical(File golden, File sorted) throws IOException {
assertEquals(golden.length(), sorted.length());
- byte [] buf1 = new byte [64 * 1024 * 1024];
- byte [] buf2 = new byte [64 * 1024 * 1024];
+ byte [] buf1 = new byte [64 * 1024];
+ byte [] buf2 = new byte [64 * 1024];
int len;
DataInputStream is1 = new DataInputStream(new FileInputStream(golden));
DataInputStream is2 = new DataInputStream(new FileInputStream(sorted));