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/19 13:52:16 UTC
[couchdb] branch jenkins-fix-elixir updated: format repl 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 9c2da18 format repl test
9c2da18 is described below
commit 9c2da1803807b1bc70fc948fa8b86a895c2c250f
Author: Garren Smith <ga...@gmail.com>
AuthorDate: Tue Feb 19 15:52:04 2019 +0200
format repl test
---
test/elixir/test/replication_test.exs | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/test/elixir/test/replication_test.exs b/test/elixir/test/replication_test.exs
index 9078217..edbe2a9 100644
--- a/test/elixir/test/replication_test.exs
+++ b/test/elixir/test/replication_test.exs
@@ -283,13 +283,14 @@ defmodule ReplicationTest do
result = replicate(src_prefix <> src_db_name, tgt_prefix <> tgt_db_name)
assert result["ok"]
- src_info = retry_until(fn ->
- src_info = get_db_info(src_db_name)
- tgt_info = get_db_info(tgt_db_name)
+ src_info =
+ retry_until(fn ->
+ src_info = get_db_info(src_db_name)
+ tgt_info = get_db_info(tgt_db_name)
- assert src_info["doc_count"] == tgt_info["doc_count"]
- src_info
- end)
+ assert src_info["doc_count"] == tgt_info["doc_count"]
+ src_info
+ end)
assert is_binary(result["session_id"])
assert is_list(result["history"])
@@ -985,10 +986,11 @@ defmodule ReplicationTest do
repl_src = src_prefix <> src_db_name
repl_tgt = tgt_prefix <> tgt_db_name
- retry_until(fn ->
+ retry_until(fn ->
create_db(src_db_name)
create_db(tgt_db_name)
end)
+
delete_on_exit([src_db_name, tgt_db_name])
docs = make_docs(1..10)