diff options
author | Loïc Hoguin <[email protected]> | 2018-10-31 09:25:19 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-10-31 09:25:19 +0100 |
commit | 07078eb47bfc2a774e4ce00d2a215c301f4f4ea7 (patch) | |
tree | da2d23606501f62f3cb0dc4a48509d4aeb550041 /test | |
parent | 122faedc25f1926a3b238fe47a75a781411065e5 (diff) | |
download | cowboy-07078eb47bfc2a774e4ce00d2a215c301f4f4ea7.tar.gz cowboy-07078eb47bfc2a774e4ce00d2a215c301f4f4ea7.tar.bz2 cowboy-07078eb47bfc2a774e4ce00d2a215c301f4f4ea7.zip |
Fix a test listener not being stopped
Diffstat (limited to 'test')
-rw-r--r-- | test/proxy_header_SUITE.erl | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/proxy_header_SUITE.erl b/test/proxy_header_SUITE.erl index 7ab2078..be6ab04 100644 --- a/test/proxy_header_SUITE.erl +++ b/test/proxy_header_SUITE.erl @@ -52,19 +52,12 @@ init_per_group(Name=h2, Config) -> env => #{dispatch => init_dispatch()}, proxy_header => true }, Config); -init_per_group(Name=h2c, Config) -> +init_per_group(Name, Config) -> Config1 = cowboy_test:init_http(Name, #{ env => #{dispatch => init_dispatch()}, proxy_header => true }, Config), - lists:keyreplace(protocol, 1, Config1, {protocol, http2}); -init_per_group(Name=h2c_upgrade, Config) -> - Config1 = cowboy_test:init_http(h2c, #{ - env => #{dispatch => init_dispatch()}, - proxy_header => true - }, Config), - Config2 = lists:keyreplace(protocol, 1, Config1, {protocol, http2}), - lists:keyreplace(ref, 1, Config2, {ref, Name}). + lists:keyreplace(protocol, 1, Config1, {protocol, http2}). end_per_group(Name, _) -> cowboy:stop_listener(Name). |