diff options
author | Jay Doane <jaydoane@apache.org> | 2021-09-27 10:20:58 -0700 |
---|---|---|
committer | Jay Doane <jay.s.doane@gmail.com> | 2021-09-27 11:11:44 -0700 |
commit | dd7c26bdedb2ab3ec5ac731336b69a6e5cd64c24 (patch) | |
tree | 2c4b155f5561e12f05be3c103fe4c93d5b89e5b1 | |
parent | c2f231ca2e5f789974800d972bbbb65db06a3256 (diff) | |
download | couchdb-dd7c26bdedb2ab3ec5ac731336b69a6e5cd64c24.tar.gz |
Remove unused variables and extra whitespace
-rw-r--r-- | src/chttpd/test/eunit/chttpd_db_test.erl | 5 |
1 files 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 d844aa5b6..6ae5ad061 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", |