diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-08-25 17:53:00 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-08-25 17:53:00 -0700 |
commit | 6517a7c923e012ea4b3d9f2497122d9c64dbdd5e (patch) | |
tree | dbf19895324fd7fdeceec8496bd3eaa103fc10ed | |
parent | cb0c05b5b48702f8c8ef0aae2b398d685d4d41d5 (diff) | |
download | jgit-6517a7c923e012ea4b3d9f2497122d9c64dbdd5e.tar.gz jgit-6517a7c923e012ea4b3d9f2497122d9c64dbdd5e.zip |
Increase temporary buffer for unit test
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>
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackFileTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackFileTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackFileTest.java index 1a40b8e79c..f31bf558c8 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackFileTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackFileTest.java @@ -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); |