diff options
author | Jan Lehnardt <jan@apache.org> | 2017-06-30 11:08:57 +0200 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2017-06-30 11:52:28 +0200 |
commit | 3afe3ad22b93c66db84df6739687cc5c693b24fd (patch) | |
tree | 5fb0d49d3de9b4a0b53ac2e1822e73e49e334083 | |
parent | 21f9544346e6d9c907393a254759d5915eb3cc61 (diff) | |
download | couchdb-feat/enable-compaction-daemon-by-default.tar.gz |
test: expect compaction daemon to be offfeat/enable-compaction-daemon-by-default
-rwxr-xr-x | dev/run | 3 | ||||
-rw-r--r-- | src/couch/test/couchdb_compaction_daemon_tests.erl | 5 |
2 files changed, 5 insertions, 3 deletions
@@ -188,7 +188,8 @@ def setup_configs(ctx): "cluster_port": cluster_port, "backend_port": backend_port, "fauxton_root": fauxton_root, - "uuid": "fake_uuid_for_dev" + "uuid": "fake_uuid_for_dev", + "_default": "" } write_config(ctx, node, env) diff --git a/src/couch/test/couchdb_compaction_daemon_tests.erl b/src/couch/test/couchdb_compaction_daemon_tests.erl index fdb6654b4..908f1d330 100644 --- a/src/couch/test/couchdb_compaction_daemon_tests.erl +++ b/src/couch/test/couchdb_compaction_daemon_tests.erl @@ -23,8 +23,9 @@ start() -> Ctx = test_util:start_couch(), - config:set("compaction_daemon", "check_interval", "3", false), - config:set("compaction_daemon", "min_file_size", "100000", false), + ok = config:set("compaction_daemon", "check_interval", "3", false), + ok = config:set("compaction_daemon", "min_file_size", "100000", false), + ok = config:delete("compactions", "_default", false), ok = meck:new(?MODS_TO_MOCK, [passthrough]), Ctx. |