summaryrefslogtreecommitdiff
path: root/src/dreyfus/test/dreyfus_test_util.erl
blob: 79fd9b59d48754f400dbe4772f41b6a9387334cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-module(dreyfus_test_util).

-export([
    wait_config_change/2
]).

-include_lib("couch/include/couch_db.hrl").

wait_config_change(Key, Value) ->
    test_util:wait(fun() ->
        case dreyfus_config:get(Key) of
            Value -> ok;
            _ -> wait
        end
    end).