need to close the recorder here so it can calculate the content length properly

This commit is contained in:
Noah Levitt
2013-08-09 19:14:58 -07:00
parent 705a375daf
commit 68adaa70fd
@@ -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));