diff options
author | jiangph <jiangph@cn.ibm.com> | 2020-11-09 11:19:01 +0800 |
---|---|---|
committer | jiangph <jiangph@cn.ibm.com> | 2020-11-09 11:19:01 +0800 |
commit | 97702fff8cf839a15d7b8edec5e587240cb30248 (patch) | |
tree | bb740612e1b0cc7db8fdb64f73cf9facc4562648 | |
parent | 94fec089529a420e693e7c0f54d179b179013293 (diff) | |
download | couchdb-check_local_dbs.tar.gz |
fix check_local_dbs testcheck_local_dbs
-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), |