You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ji...@apache.org on 2024/12/30 17:54:13 UTC

(couchdb) 04/10: add _ underscore for unused variable

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

jiahuili430 pushed a commit to branch fix-elixir-warnings
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 1a00d593afce3afbc1170f724a3bf5f6fd69c24f
Author: Jiahui Li <li...@gmail.com>
AuthorDate: Sun Dec 29 22:27:48 2024 -0600

    add _ underscore for unused variable
---
 test/elixir/test/auth_lockout_test.exs | 3 ++-
 test/elixir/test/basics_test.exs       | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/elixir/test/auth_lockout_test.exs b/test/elixir/test/auth_lockout_test.exs
index fc70c25a9..089e76fe8 100644
--- a/test/elixir/test/auth_lockout_test.exs
+++ b/test/elixir/test/auth_lockout_test.exs
@@ -39,6 +39,7 @@ defmodule AuthLockoutTest do
     # locked out?
     resp = Couch.get("/_all_dbs",
       no_auth: true,
+
       headers:  [authorization: "Basic #{:base64.encode("chttpd_auth_lockout:baz")}"]
     )
     assert resp.status_code == 403
@@ -56,7 +57,7 @@ defmodule AuthLockoutTest do
     end
 
     # warning?
-    resp = Couch.get("/_all_dbs",
+    Couch.get("/_all_dbs",
       no_auth: true,
       headers:  [authorization: "Basic #{:base64.encode("chttpd_auth_lockout:baz")}"]
     )
diff --git a/test/elixir/test/basics_test.exs b/test/elixir/test/basics_test.exs
index 94faf3c2e..3c04ce8a2 100644
--- a/test/elixir/test/basics_test.exs
+++ b/test/elixir/test/basics_test.exs
@@ -383,7 +383,7 @@ defmodule BasicsTest do
   end
 
   @tag :with_db
-  test "request ID can be specified at the client", context do
+  test "request ID can be specified at the client", _context do
     uuid = "E7498DE1-B661-42FA-943D-17F890143068"
     resp = Couch.get("/", headers: ["X-Couch-Request-ID": uuid])
     assert resp.headers["X-Couch-Request-ID"] == uuid