diff options
author | Peng Hui Jiang <jiangph@cn.ibm.com> | 2020-11-09 14:09:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 14:09:10 +0800 |
commit | 9a0c55be85852621c88b7ff166183b388987f57c (patch) | |
tree | bb740612e1b0cc7db8fdb64f73cf9facc4562648 | |
parent | 94fec089529a420e693e7c0f54d179b179013293 (diff) | |
parent | ff33084adf75722745dd74753aadb1ad058c234f (diff) | |
download | couchdb-9a0c55be85852621c88b7ff166183b388987f57c.tar.gz |
Merge pull request #3253 from apache/check_local_dbs
fix check_local_dbs test
-rw-r--r-- | src/mem3/test/eunit/mem3_seeds_test.erl | 7 |
1 files 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 ac32282bf..1c1e2fed6 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), |