couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [couchdb] 02/09: chore: add debugging for failing test case, see COUCHDB-3413
Date Sat, 20 May 2017 12:13:44 GMT
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 <jan@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" <commits@couchdb.apache.org>.

Mime
View raw message