This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git

The following commit(s) were added to refs/heads/master by this push:
       new  a2de7a0   chore: add debugging for failing test case, see 
COUCHDB-3413
a2de7a0 is described below

commit a2de7a01e1109e63a5ca0a613a157260248ab297
Author: Jan Lehnardt <[email protected]>
AuthorDate: Sun May 14 11:48:30 2017 +0200

    chore: add debugging for failing test case, see COUCHDB-3413
---
 src/chttpd/test/chttpd_db_doc_size_tests.erl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/chttpd/test/chttpd_db_doc_size_tests.erl 
b/src/chttpd/test/chttpd_db_doc_size_tests.erl
index d2a993e..cdd2936 100644
--- a/src/chttpd/test/chttpd_db_doc_size_tests.erl
+++ b/src/chttpd/test/chttpd_db_doc_size_tests.erl
@@ -42,6 +42,11 @@ teardown(Url) ->
 
 create_db(Url) ->
     {ok, Status, _, _} = test_request:put(Url, [?CONTENT_JSON, ?AUTH], "{}"),
+    case Status of
+        201 -> ok;
+        202 -> ok;
+        Else -> io:format(user, "~n HTTP Status Code: ~p~n", [Status])
+    end,
     ?assert(Status =:= 201 orelse Status =:= 202).
 
 delete_db(Url) ->
@@ -170,4 +175,3 @@ post_multi_part_form(Url) ->
         [?CONTENT_MULTI_FORM, ?AUTH, Referer], Doc2),
     {Msg1} = ?JSON_DECODE(ResultBody1),
     ?_assertEqual({<<"error">>, <<"document_too_large">>}, lists:nth(1, Msg1)).
-

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to