You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2017/05/20 12:13:44 UTC

[couchdb] 02/09: chore: add debugging for failing test case, see COUCHDB-3413

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

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

commit 89217bfadcf6ee5a1497d6ddcde448ea6366a160
Author: Jan Lehnardt <ja...@apache.org>
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
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.