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 2021/09/27 17:26:11 UTC
[couchdb] 02/02: Remove unused variables and extra whitespace
This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a commit to branch remove-redundant-csp-tests
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 548964e77874b04af86e5c16e27d4c4d1a0434f7
Author: Jay Doane <ja...@apache.org>
AuthorDate: Mon Sep 27 10:20:58 2021 -0700
Remove unused variables and extra whitespace
---
src/chttpd/test/eunit/chttpd_db_test.erl | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/chttpd/test/eunit/chttpd_db_test.erl b/src/chttpd/test/eunit/chttpd_db_test.erl
index d844aa5..6ae5ad0 100644
--- a/src/chttpd/test/eunit/chttpd_db_test.erl
+++ b/src/chttpd/test/eunit/chttpd_db_test.erl
@@ -259,7 +259,7 @@ should_return_correct_id_on_doc_copy(Url) ->
[?CONTENT_JSON, ?AUTH, ?DESTHEADER1]),
{ResultJson1} = ?JSON_DECODE(ResultBody1),
Id1 = couch_util:get_value(<<"id">>, ResultJson1),
-
+
{_, _, _, ResultBody2} = test_request:copy(Url ++ "/testdoc/",
[?CONTENT_JSON, ?AUTH, ?DESTHEADER2]),
{ResultJson2} = ?JSON_DECODE(ResultBody2),
@@ -276,7 +276,7 @@ should_return_only_one_ok_on_doc_copy(Url) ->
{_, _, _, ResultBody} = test_request:copy(Url ++ "/testdoc",
[?CONTENT_JSON, ?AUTH, ?DESTHEADER1]),
{ResultJson} = jiffy:decode(ResultBody),
- NumOks = length(lists:filter(fun({Key, Value}) -> Key == <<"ok">> end, ResultJson)),
+ NumOks = length(lists:filter(fun({Key, _Value}) -> Key == <<"ok">> end, ResultJson)),
[
?assertEqual(1, NumOks)
]
@@ -311,7 +311,6 @@ should_not_change_db_proper_after_rewriting_shardmap(_) ->
TmpDb = ?tempdb(),
Addr = config:get("chttpd", "bind_address", "127.0.0.1"),
Port = mochiweb_socket_server:get(chttpd, port),
- AdmPort = mochiweb_socket_server:get(couch_httpd, port),
BaseUrl = lists:concat(["http://", Addr, ":", Port, "/", ?b2l(TmpDb)]),
Url = BaseUrl ++ "?partitioned=true&q=1",