diff options
author | Frederick Kaempfer <frederick.kaempfer@gmail.com> | 2017-07-11 19:59:39 +0200 |
---|---|---|
committer | Joan Touzet <wohali@users.noreply.github.com> | 2017-07-12 11:12:37 -0400 |
commit | 348accf5e8c1e0cdcae4803efc3bad2c7149d362 (patch) | |
tree | 32952d7a552f61580143ee1c0142fe19abaa4b5b | |
parent | 247b9856f0c066a0e37ebfd877f27ea462d17d66 (diff) | |
download | couchdb-348accf5e8c1e0cdcae4803efc3bad2c7149d362.tar.gz |
admin context in couch tests no longer necessary for compaction with the new approach
-rw-r--r-- | src/couch/test/couchdb_file_compression_tests.erl | 2 | ||||
-rw-r--r-- | src/couch/test/couchdb_views_tests.erl | 2 | ||||
-rw-r--r-- | src/couch_replicator/test/couch_replicator_compact_tests.erl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/couch/test/couchdb_file_compression_tests.erl b/src/couch/test/couchdb_file_compression_tests.erl index a23845975..ccfa24435 100644 --- a/src/couch/test/couchdb_file_compression_tests.erl +++ b/src/couch/test/couchdb_file_compression_tests.erl @@ -174,7 +174,7 @@ refresh_index(DbName) -> compact_db(DbName) -> DiskSizeBefore = db_disk_size(DbName), - {ok, Db} = couch_db:open_int(DbName, [?ADMIN_CTX]), + {ok, Db} = couch_db:open_int(DbName, []), {ok, _CompactPid} = couch_db:start_compact(Db), wait_compaction(DbName, "database", ?LINE), ok = couch_db:close(Db), diff --git a/src/couch/test/couchdb_views_tests.erl b/src/couch/test/couchdb_views_tests.erl index a593dbc5e..e320b54c6 100644 --- a/src/couch/test/couchdb_views_tests.erl +++ b/src/couch/test/couchdb_views_tests.erl @@ -582,7 +582,7 @@ restore_backup_db_file(DbName) -> end, ?TIMEOUT, ?DELAY). compact_db(DbName) -> - {ok, Db} = couch_db:open_int(DbName, [?ADMIN_CTX]), + {ok, Db} = couch_db:open_int(DbName, []), {ok, _} = couch_db:start_compact(Db), ok = couch_db:close(Db), wait_db_compact_done(DbName, 20). diff --git a/src/couch_replicator/test/couch_replicator_compact_tests.erl b/src/couch_replicator/test/couch_replicator_compact_tests.erl index e3f2556f8..1a794658a 100644 --- a/src/couch_replicator/test/couch_replicator_compact_tests.erl +++ b/src/couch_replicator/test/couch_replicator_compact_tests.erl @@ -281,7 +281,7 @@ reopen_db(DbName) -> {ok, Db}. compact_db(Type, #db{name = Name}) -> - {ok, Db} = couch_db:open_int(Name, [?ADMIN_CTX]), + {ok, Db} = couch_db:open_int(Name, []), {ok, CompactPid} = couch_db:start_compact(Db), MonRef = erlang:monitor(process, CompactPid), receive |