]> source.dussan.org Git - jgit.git/commitdiff
Increase temporary buffer for unit test 28/1428/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 26 Aug 2010 00:53:00 +0000 (17:53 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 26 Aug 2010 00:53:00 +0000 (17:53 -0700)
Because we are using the large stream size, we have to be
above the STREAM_THRESHOLD constant, which I just increased.

Change-Id: I6f10ec8558d9f751d4b547fcae05af94f1c8866b
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackFileTest.java

index 1a40b8e79cd7c6dce9138677d81d4ce86b6cc705..f31bf558c86babfb194527a84e63c801d09080dd 100644 (file)
@@ -284,7 +284,8 @@ public class PackFileTest extends LocalDiskRepositoryTestCase {
                byte[] delta3 = tmp.toByteArray();
                assertTrue(delta3.length > ObjectLoader.STREAM_THRESHOLD);
 
-               TemporaryBuffer.Heap pack = new TemporaryBuffer.Heap(64 * 1024);
+               TemporaryBuffer.Heap pack = new TemporaryBuffer.Heap(
+                               ObjectLoader.STREAM_THRESHOLD + 1024);
                packHeader(pack, 2);
                objectHeader(pack, Constants.OBJ_BLOB, data0.length);
                deflate(pack, data0);