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 13:43:09 UTC
(couchdb) 08/09: fix warning: comparison between distinct types found
This is an automated email from the ASF dual-hosted git repository.
jiahuili430 pushed a commit to branch jenkins-elixir
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 73501b4cb49aa10dc89e07567d902808ca29fc72
Author: Jiahui Li <li...@gmail.com>
AuthorDate: Sun Dec 29 23:21:09 2024 -0600
fix warning: comparison between distinct types found
---
test/elixir/test/replication_test.exs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/test/elixir/test/replication_test.exs b/test/elixir/test/replication_test.exs
index 09f3e2417..d63f5ddc5 100644
--- a/test/elixir/test/replication_test.exs
+++ b/test/elixir/test/replication_test.exs
@@ -1307,7 +1307,12 @@ defmodule ReplicationTest do
is_ddoc = String.starts_with?(doc["_id"], "_design/")
case doc["integer"] do
- N when (N >= 10 and N < 15) or is_ddoc ->
+ n when (n >= 10 and n < 15) or is_ddoc ->
+ IO.puts("+++++ n: #{n}")
+ IO.puts("+++++ is_ddoc: #{is_ddoc}")
+ IO.puts(inspect(n))
+ IO.puts(inspect(is_ddoc))
+
resp = Couch.get!("/#{tgt_db_name}/#{doc["_id"]}")
atts = resp.body["_attachments"]
assert is_map(atts)