From 68adaa70fd4181fbef1d6c2cdc8246a2ec7718c3 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Fri, 9 Aug 2013 19:14:58 -0700 Subject: [PATCH] need to close the recorder here so it can calculate the content length properly --- .../org/archive/modules/recrawl/ContentDigestHistoryTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/src/test/java/org/archive/modules/recrawl/ContentDigestHistoryTest.java b/modules/src/test/java/org/archive/modules/recrawl/ContentDigestHistoryTest.java index d7ebf07f..2a5b12e0 100644 --- a/modules/src/test/java/org/archive/modules/recrawl/ContentDigestHistoryTest.java +++ b/modules/src/test/java/org/archive/modules/recrawl/ContentDigestHistoryTest.java @@ -138,6 +138,7 @@ public class ContentDigestHistoryTest extends TmpDirTestCase { // give Recorder some content so that getContentLength() returns non-zero. InputStream is = rec.inputWrap(new ByteArrayInputStream("HTTP/1.0 200 OK\r\n\r\ntext.".getBytes())); is.read(new byte[1024]); + is.close(); assertFalse(loader().shouldProcess(curi1)); assertFalse(storer().shouldProcess(curi1));