You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ji...@apache.org on 2020/11/09 03:19:45 UTC

[couchdb] branch check_local_dbs created (now 97702ff)

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

jiangphcn pushed a change to branch check_local_dbs
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at 97702ff  fix check_local_dbs test

This branch includes the following new commits:

     new 97702ff  fix check_local_dbs test

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: fix check_local_dbs test

Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jiangphcn pushed a commit to branch check_local_dbs
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 97702fff8cf839a15d7b8edec5e587240cb30248
Author: jiangph <ji...@cn.ibm.com>
AuthorDate: Mon Nov 9 11:19:01 2020 +0800

    fix check_local_dbs test
---
 src/mem3/test/eunit/mem3_seeds_test.erl | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/mem3/test/eunit/mem3_seeds_test.erl b/src/mem3/test/eunit/mem3_seeds_test.erl
index ac32282..1c1e2fe 100644
--- a/src/mem3/test/eunit/mem3_seeds_test.erl
+++ b/src/mem3/test/eunit/mem3_seeds_test.erl
@@ -59,11 +59,10 @@ check_nodelist() ->
     end.
 
 check_local_dbs() ->
-    ?assertEqual([<<"_dbs">>, <<"_nodes">>],
-        lists:sort(mem3_sync:local_dbs())),
+    LocalDbs = mem3_sync:local_dbs(),
     {ok, _} = couch_server:create(<<"_users">>, []),
-    ?assertEqual([<<"_dbs">>, <<"_nodes">>, <<"_users">>],
-        lists:sort(mem3_sync:local_dbs())).
+    ?assertEqual(lists:append(LocalDbs, [<<"_users">>]),
+        mem3_sync:local_dbs()).
 
 cleanup() ->
     application:stop(mem3),