summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2010-08-18 11:41:10 +0000
committerRobert Newson <rnewson@apache.org>2010-08-18 11:41:10 +0000
commitd18d7036788acf2d5ddab608d0352158139de189 (patch)
tree4474cce378e152c36bd4484a673776ab3abe15be /test
parent6ddcdf17ef2a5e55f0962211c7c878aa5e74ffe7 (diff)
COUCHDB-161 - support Range header for attachments.
Attachments are upgraded to support the Range header on compaction. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@986629 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rwxr-xr-xtest/etap/050-stream.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/etap/050-stream.t b/test/etap/050-stream.t
index 545dd524..d30b524a 100755
--- a/test/etap/050-stream.t
+++ b/test/etap/050-stream.t
@@ -43,7 +43,7 @@ test() ->
"Writing an empty binary does nothing."),
{Ptrs, Length, _, _, _} = couch_stream:close(Stream),
- etap:is(Ptrs, [0], "Close returns the file pointers."),
+ etap:is(Ptrs, [{0, 8}], "Close returns the file pointers."),
etap:is(Length, 8, "Close also returns the number of bytes written."),
etap:is(<<"foodfoob">>, read_all(Fd, Ptrs), "Returned pointers are valid."),
@@ -59,7 +59,7 @@ test() ->
"Successfully wrote 80 0 bits."),
{Ptrs2, Length2, _, _, _} = couch_stream:close(Stream2),
- etap:is(Ptrs2, [ExpPtr], "Closing stream returns the file pointers."),
+ etap:is(Ptrs2, [{ExpPtr, 20}], "Closing stream returns the file pointers."),
etap:is(Length2, 20, "Length written is 160 bytes."),
AllBits = iolist_to_binary([OneBits,ZeroBits]),
@@ -80,7 +80,7 @@ test() ->
% + 4 bytes for the term_to_binary adding a length header
% + 1 byte every 4K for tail append headers
SecondPtr = ExpPtr2 + 4095 + 5 + 4 + 1,
- etap:is(Ptrs3, [ExpPtr2, SecondPtr], "Pointers every 4K bytes."),
+ etap:is(Ptrs3, [{ExpPtr2, 4100}, {SecondPtr, 1020}], "Pointers every 4K bytes."),
etap:is(Length3, 5120, "Wrote the expected 5K bytes."),
couch_file:close(Fd),