couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1051612 - /couchdb/trunk/test/etap/180-http-proxy.t
Date Tue, 21 Dec 2010 19:00:22 GMT
Author: davisp
Date: Tue Dec 21 19:00:21 2010
New Revision: 1051612

URL: http://svn.apache.org/viewvc?rev=1051612&view=rev
Log:
Fix 180-http-proxy tests after Mochiweb upgrade.

Content-Length and the HTTP body are returned as 0 and an empty binary
instead of undefined.


Modified:
    couchdb/trunk/test/etap/180-http-proxy.t

Modified: couchdb/trunk/test/etap/180-http-proxy.t
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/180-http-proxy.t?rev=1051612&r1=1051611&r2=1051612&view=diff
==============================================================================
--- couchdb/trunk/test/etap/180-http-proxy.t (original)
+++ couchdb/trunk/test/etap/180-http-proxy.t Tue Dec 21 19:00:21 2010
@@ -93,8 +93,8 @@ test_basic() ->
     Remote = fun(Req) ->
         'GET' = Req:get(method),
         "/" = Req:get(path),
-        undefined = Req:get(body_length),
-        undefined = Req:recv_body(),
+        0 = Req:get(body_length),
+        <<>> = Req:recv_body(),
         {ok, {200, [{"Content-Type", "text/plain"}], "ok"}}
     end,
     Local = fun({ok, "200", _, "ok"}) -> true; (_) -> false end,



Mime
View raw message