You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2019/02/18 16:37:13 UTC
[couchdb] branch jenkins-fix-elixir updated: another test
This is an automated email from the ASF dual-hosted git repository.
garren pushed a commit to branch jenkins-fix-elixir
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/jenkins-fix-elixir by this push:
new 0a8b9c8 another test
0a8b9c8 is described below
commit 0a8b9c838aa14f09775fc82e71a84b5626c56546
Author: Garren Smith <ga...@gmail.com>
AuthorDate: Mon Feb 18 18:36:57 2019 +0200
another test
---
test/elixir/test/bulk_docs_test.exs | 14 ++++++++------
test/elixir/test/partition_ddoc_test.exs | 2 +-
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/test/elixir/test/bulk_docs_test.exs b/test/elixir/test/bulk_docs_test.exs
index 01a3993..37242fc 100644
--- a/test/elixir/test/bulk_docs_test.exs
+++ b/test/elixir/test/bulk_docs_test.exs
@@ -126,14 +126,16 @@ defmodule BulkDocsTest do
end
defp bulk_post(docs, db) do
- resp = Couch.post("/#{db}/_bulk_docs", body: %{docs: docs})
+ retry_until(fn ->
+ resp = Couch.post("/#{db}/_bulk_docs", body: %{docs: docs})
- assert resp.status_code == 201 and length(resp.body) == length(docs), """
- Expected 201 and the same number of response rows as in request, but got
- #{pretty_inspect(resp)}
- """
+ assert resp.status_code == 201 and length(resp.body) == length(docs), """
+ Expected 201 and the same number of response rows as in request, but got
+ #{pretty_inspect(resp)}
+ """
- resp
+ resp
+ end)
end
defp revs_start_with(rows, prefix) do
diff --git a/test/elixir/test/partition_ddoc_test.exs b/test/elixir/test/partition_ddoc_test.exs
index 81421f4..85f66c4 100644
--- a/test/elixir/test/partition_ddoc_test.exs
+++ b/test/elixir/test/partition_ddoc_test.exs
@@ -157,7 +157,7 @@ defmodule PartitionDDocTest do
end
@tag :skip_on_jenkins
- test "GET /dbname/_design_docs works", context do
+ test "GET /dbname/_design_docs", context do
db_name = context[:db_name]
retry_until(fn ->