Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Don't start couch_log app if we don't use it
This makes no sense since we mock it, but causes unwanted troubles
with config startup dependency.
  • Loading branch information
kxepal committed Dec 1, 2015
1 parent 80fd81b commit f20843714eee54c687739c94c6ac870e7a1e6a00
Showing 1 changed file with 4 additions and 7 deletions.
@@ -141,15 +141,12 @@ nval_test_() ->


config_01_setup() ->
{ok, Started} = application:ensure_all_started(couch_log),
Ini = filename:join([code:lib_dir(mem3, test), "01-config-default.ini"]),
{ok, Pid} = config:start_link([Ini]),
{Pid, Started}.
Pid.

config_teardown({_Pid, Started}) ->
config:stop(),
[ok = application:stop(A) || A <- lists:reverse(Started)],
ok.
config_teardown(_Pid) ->
config:stop().


n_val_test_() ->
@@ -158,7 +155,7 @@ n_val_test_() ->
{setup,
fun config_01_setup/0,
fun config_teardown/1,
fun({Pid, _Started}) ->
fun(Pid) ->
{with, Pid, [
fun n_val_1/1
]}

0 comments on commit f208437

Please sign in to comment.