diff options
author | j.uhlig <[email protected]> | 2018-05-04 16:23:27 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-05-16 17:16:56 +0200 |
commit | 963f53942f1106771e91a018ac9ad46e3bc6a777 (patch) | |
tree | 6f733090ec39b55616b2ccdea266090dbfb8b365 /test/ranch_ct_hook.erl | |
parent | 16762abdcffa53834d44e22eb4d26ef699c89fc2 (diff) | |
download | ranch-963f53942f1106771e91a018ac9ad46e3bc6a777.tar.gz ranch-963f53942f1106771e91a018ac9ad46e3bc6a777.tar.bz2 ranch-963f53942f1106771e91a018ac9ad46e3bc6a777.zip |
Ensure listener restart with changed TransOpts
Diffstat (limited to 'test/ranch_ct_hook.erl')
-rw-r--r-- | test/ranch_ct_hook.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ranch_ct_hook.erl b/test/ranch_ct_hook.erl index 183cdf5..07f89df 100644 --- a/test/ranch_ct_hook.erl +++ b/test/ranch_ct_hook.erl @@ -17,6 +17,11 @@ -export([init/2]). init(_, _) -> + %% Allow a more relaxed restart intensity because + %% some tests will cause quick restarts of several + %% ranch_sup children. + application:set_env(ranch, ranch_sup_intensity, 10), + application:set_env(ranch, ranch_sup_period, 1), ct_helper:start([ranch]), ct_helper:make_certs_in_ets(), error_logger:add_report_handler(ct_helper_error_h), |