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/03 06:39:00 UTC
[couchdb] branch fix-exunit-tests created (now 2085f1f)
This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a change to branch fix-exunit-tests
in repository https://gitbox.apache.org/repos/asf/couchdb.git.
at 2085f1f Fix pagination tests
This branch includes the following new commits:
new a234459 Suppress compiler warnings
new 2085f1f Fix pagination tests
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb] 01/02: Suppress compiler warnings
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a commit to branch fix-exunit-tests
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit a2344596b38c1b2fc1b654bd95754972db7d9363
Author: Jay Doane <ja...@apache.org>
AuthorDate: Thu Sep 2 23:37:43 2021 -0700
Suppress compiler warnings
---
src/chttpd/test/exunit/pagination_test.exs | 4 ++--
src/chttpd/test/exunit/tracing_test.exs | 4 +---
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/chttpd/test/exunit/pagination_test.exs b/src/chttpd/test/exunit/pagination_test.exs
index 4e0a5d6..e41dee7 100644
--- a/src/chttpd/test/exunit/pagination_test.exs
+++ b/src/chttpd/test/exunit/pagination_test.exs
@@ -109,7 +109,7 @@ defmodule Couch.Test.Pagination do
paginate_queries(context, [], opts)
end
- defp paginate_queries(context, acc, opts) do
+ defp paginate_queries(context, _acc, opts) do
{paginate_opts, client_opts} = Keyword.split(opts, [:url, :direction])
resp =
@@ -1262,7 +1262,7 @@ defmodule Couch.Test.Pagination do
inspect(field(results, "id"))
})
- keys = Enum.map(results, &Map.get(&1, "key"))
+ _keys = Enum.map(results, &Map.get(&1, "key"))
end
end
end
diff --git a/src/chttpd/test/exunit/tracing_test.exs b/src/chttpd/test/exunit/tracing_test.exs
index f66fb87..4758cd4 100644
--- a/src/chttpd/test/exunit/tracing_test.exs
+++ b/src/chttpd/test/exunit/tracing_test.exs
@@ -1,7 +1,5 @@
defmodule Couch.Test.OpenTracing do
use Couch.Test.ExUnit.Case
- alias Couch.Test.Setup
- alias Couch.Test.Setup.Step
alias Couch.Test.Utils
import Couch.DBTest, only: [retry_until: 1]
@@ -17,7 +15,7 @@ defmodule Couch.Test.OpenTracing do
end
setup_all context do
- test_ctx = :test_util.start_couch([:chttpd])
+ _test_ctx = :test_util.start_couch([:chttpd])
:ok = create_admin("adm", "pass")
Map.merge(context, %{
[couchdb] 02/02: Fix pagination tests
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a commit to branch fix-exunit-tests
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 2085f1f6fd7f2b49f48d298e9127de5e9faaebd1
Author: Jay Doane <ja...@apache.org>
AuthorDate: Thu Sep 2 23:38:33 2021 -0700
Fix pagination tests
Replace couch_js with ateles
---
src/chttpd/test/exunit/pagination_test.exs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/chttpd/test/exunit/pagination_test.exs b/src/chttpd/test/exunit/pagination_test.exs
index e41dee7..7a0fa4d 100644
--- a/src/chttpd/test/exunit/pagination_test.exs
+++ b/src/chttpd/test/exunit/pagination_test.exs
@@ -16,7 +16,7 @@ defmodule Couch.Test.Pagination do
setup_all do
test_ctx =
- :test_util.start_couch([:chttpd, :couch_jobs, :couch_views, :couch_eval, :couch_js])
+ :test_util.start_couch([:chttpd, :couch_jobs, :couch_views, :couch_eval, :ateles])
:ok = create_admin("adm", "pass")