summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2017-05-14 11:48:30 +0200
committerJan Lehnardt <jan@apache.org>2017-05-16 09:37:45 +0200
commita2de7a01e1109e63a5ca0a613a157260248ab297 (patch)
tree28658440250f1aa286c19186eee10ccf3e05f118
parent51a630bd94aab693050c41defc320074d9dfc591 (diff)
downloadcouchdb-a2de7a01e1109e63a5ca0a613a157260248ab297.tar.gz
chore: add debugging for failing test case, see COUCHDB-3413
-rw-r--r--src/chttpd/test/chttpd_db_doc_size_tests.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/chttpd/test/chttpd_db_doc_size_tests.erl b/src/chttpd/test/chttpd_db_doc_size_tests.erl
index d2a993ef1..cdd2936c8 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)).
-