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/20 12:47:41 UTC
[couchdb] branch jenkins-fix-elixir-take-2 updated: fix another
replication test
This is an automated email from the ASF dual-hosted git repository.
garren pushed a commit to branch jenkins-fix-elixir-take-2
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/jenkins-fix-elixir-take-2 by this push:
new 1431ac4 fix another replication test
1431ac4 is described below
commit 1431ac41e343709f87cf5afcc577d6ec16fb7c99
Author: Garren Smith <ga...@gmail.com>
AuthorDate: Wed Feb 20 14:47:26 2019 +0200
fix another replication test
---
test/elixir/test/replication_test.exs | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/test/elixir/test/replication_test.exs b/test/elixir/test/replication_test.exs
index edbe2a9..c6eb80c 100644
--- a/test/elixir/test/replication_test.exs
+++ b/test/elixir/test/replication_test.exs
@@ -406,12 +406,14 @@ defmodule ReplicationTest do
result = replicate(src_prefix <> src_db_name, tgt_prefix <> tgt_db_name)
assert result["ok"]
- src_info = get_db_info(src_db_name)
- tgt_info = get_db_info(tgt_db_name)
+ retry_until(fn ->
+ src_info = get_db_info(src_db_name)
+ tgt_info = get_db_info(tgt_db_name)
- assert tgt_info["doc_count"] == src_info["doc_count"]
- assert tgt_info["doc_del_count"] == src_info["doc_del_count"]
- assert tgt_info["doc_del_count"] == 1
+ assert tgt_info["doc_count"] == src_info["doc_count"]
+ assert tgt_info["doc_del_count"] == src_info["doc_del_count"]
+ assert tgt_info["doc_del_count"] == 1
+ end)
assert is_list(result["history"])
assert length(result["history"]) == 3