diff options
author | Alessio Biancalana <dottorblaster@gmail.com> | 2018-12-07 21:58:39 +0100 |
---|---|---|
committer | Joan Touzet <wohali@users.noreply.github.com> | 2018-12-07 15:58:39 -0500 |
commit | f9354ea21d2f5161e0403fbded404506405a5d70 (patch) | |
tree | 67f8ce38ba6c49b57e44c6bfef9c7aad54e2703a /test/elixir/test/lots_of_docs_test.exs | |
parent | 33d4f6d02715a204ef2dd7ddc4795aed5c1b72ce (diff) | |
download | couchdb-f9354ea21d2f5161e0403fbded404506405a5d70.tar.gz |
Add Credo to Elixir test suite (#1769)
This PR adds Credo as the static code analysis tool of choice for the Elixir test suite.
Diffstat (limited to 'test/elixir/test/lots_of_docs_test.exs')
-rw-r--r-- | test/elixir/test/lots_of_docs_test.exs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/elixir/test/lots_of_docs_test.exs b/test/elixir/test/lots_of_docs_test.exs index 57e45afcd..2c68ca3c4 100644 --- a/test/elixir/test/lots_of_docs_test.exs +++ b/test/elixir/test/lots_of_docs_test.exs @@ -18,7 +18,9 @@ defmodule LotsOfDocsTest do |> Enum.chunk_every(100) |> Enum.each(fn docs -> bulk_post(docs, db_name) end) - %{"rows" => rows, "total_rows" => total_rows} = Couch.get("/#{db_name}/_all_docs").body + %{"rows" => rows, "total_rows" => total_rows} = + Couch.get("/#{db_name}/_all_docs").body + assert total_rows === Enum.count(@docs_range) assert total_rows === Enum.count(rows) @@ -66,7 +68,9 @@ defmodule LotsOfDocsTest do assert Map.fetch!(Enum.at(rows, i), "key") === i end) - %{"rows" => desc_rows, "total_rows" => desc_total_rows} = query_view(db_name, "descending") + %{"rows" => desc_rows, "total_rows" => desc_total_rows} = + query_view(db_name, "descending") + assert desc_total_rows === Enum.count(desc_rows) assert desc_total_rows === Enum.count(@docs_range) |