From 963f53942f1106771e91a018ac9ad46e3bc6a777 Mon Sep 17 00:00:00 2001 From: "j.uhlig" Date: Fri, 4 May 2018 16:23:27 +0200 Subject: Ensure listener restart with changed TransOpts --- test/ranch_ct_hook.erl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ranch_ct_hook.erl') 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), -- cgit v1.2.3