You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2020/02/13 20:27:02 UTC

[couchdb] branch prototype/fdb-layer-get-dbs-info updated: fixup: add db size tests

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch prototype/fdb-layer-get-dbs-info
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/prototype/fdb-layer-get-dbs-info by this push:
     new 8899334  fixup: add db size tests
8899334 is described below

commit 8899334daf310df60cf8fc405dc3b19d08339e89
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Thu Feb 13 14:29:32 2020 -0600

    fixup: add db size tests
---
 src/fabric/test/fabric2_db_size_tests.erl | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/fabric/test/fabric2_db_size_tests.erl b/src/fabric/test/fabric2_db_size_tests.erl
index 3ffca9f..eb604fd 100644
--- a/src/fabric/test/fabric2_db_size_tests.erl
+++ b/src/fabric/test/fabric2_db_size_tests.erl
@@ -40,6 +40,7 @@ db_size_test_() ->
                 ?TDEF(delete_winning_revision),
                 ?TDEF(delete_conflict_revision),
                 ?TDEF(replicate_existing_revision),
+                ?TDEF(replicate_shared_history),
                 ?TDEF(create_doc_with_attachment),
                 ?TDEF(add_attachment_in_update),
                 ?TDEF(add_second_attachment),
@@ -146,6 +147,14 @@ replicate_existing_revision({Db, _}) ->
     ]).
 
 
+replicate_shared_history({Db, _}) ->
+    check(Db, [
+        {create, #{tgt => rev1, depth => 5}},
+        {update, #{src => rev1, tgt => rev2, depth => 5}},
+        {replcate, #{src => rev1, tgt => rev3, depth => 5}}
+    ]).
+
+
 create_doc_with_attachment({Db, _}) ->
     check(Db, [
         {mk_att, #{tgt => att1}},