You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2020/07/26 18:10:18 UTC

[couchdb] 16/17: test: adjust peruser tests to access

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

jan pushed a commit to branch feat/access-master-clean
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 9da1e4b8507e160ef124a7d635e093acdb596afb
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Sun Jul 26 20:07:51 2020 +0200

    test: adjust peruser tests to access
---
 src/couch_peruser/test/eunit/couch_peruser_test.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/couch_peruser/test/eunit/couch_peruser_test.erl b/src/couch_peruser/test/eunit/couch_peruser_test.erl
index 5ddbe7a..151c493 100644
--- a/src/couch_peruser/test/eunit/couch_peruser_test.erl
+++ b/src/couch_peruser/test/eunit/couch_peruser_test.erl
@@ -53,8 +53,8 @@ teardown(TestAuthDb) ->
     do_request(delete, get_cluster_base_url() ++ "/" ++ ?b2l(TestAuthDb)),
     do_request(delete, get_base_url() ++ "/" ++ ?b2l(TestAuthDb)),
     lists:foreach(fun(DbName) ->
-        case binary:part(DbName, 0, 7) of
-            <<"userdb-">> -> delete_db(DbName);
+        case binary:part(DbName, 0, 6) of
+            <<"userdb">> -> delete_db(DbName);
             _ -> ok
         end
     end, all_dbs()).