Github user iilyak commented on a diff in the pull request:

    https://github.com/apache/couchdb-config/pull/15#discussion_r117546796
  
    --- Diff: test/config_tests.erl ---
    @@ -69,34 +67,36 @@ setup({persistent, Chain}) ->
     
     setup(Chain) ->
         ok = application:set_env(config, ini_files, Chain),
    -    test_util:start_applications(?DEPS).
    +    test_util:start_applications([config]).
     
     
     setup_empty() ->
         setup([]).
     
     
     setup_config_listener() ->
    -    setup(),
    -    spawn_config_listener().
    +    Apps = setup(),
    +    Pid = spawn_config_listener(),
    +    {Apps, Pid}.
     
     setup_config_notifier(Subscription) ->
    -    setup(),
    -    spawn_config_notifier(Subscription).
    +    Apps = setup(),
    +    Pid = spawn_config_notifier(Subscription),
    +    {Apps, Pid}.
     
     
    -teardown(Pid) when is_pid(Pid) ->
    +teardown({Apps, Pid}) when is_pid(Pid) ->
         catch exit(Pid, kill),
    -    teardown(undefined);
    +    teardown(Apps);
     
    -teardown(_) ->
    -    [application:stop(App) || App <- ?DEPS].
    +teardown(Apps) when is_list(Apps) ->
    +    test_util:stop_applications(Apps).
    --- End diff --
    
    test_util is part of monorepository


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to