Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

don't allocate 128MB of ram in this assert

Robert Muir17438c9eac4d
diff --git a/modules/suggest/src/test/org/apache/lucene/search/suggest/fst/TestSort.java b/modules/suggest/src/test/org/apache/lucene/search/suggest/fst/TestSort.java
index d350b0391f0..8496974d4a2 100644
--- a/modules/suggest/src/test/org/apache/lucene/search/suggest/fst/TestSort.java
+++ b/modules/suggest/src/test/org/apache/lucene/search/suggest/fst/TestSort.java
@@ -100,8 +100,8 @@ public class TestSort extends LuceneTestCase {
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));