diff options
author | Loïc Hoguin <[email protected]> | 2021-02-09 14:36:39 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2021-02-09 14:36:39 +0100 |
commit | 52b989079bacf423818a8e6d42c56095ad857635 (patch) | |
tree | 5a661c7b7953035d662e93c26c18eacbd9bca2db /test | |
parent | 53205a26d9cbbc09b9b31cf7005293ac9d99eaae (diff) | |
download | gun-52b989079bacf423818a8e6d42c56095ad857635.tar.gz gun-52b989079bacf423818a8e6d42c56095ad857635.tar.bz2 gun-52b989079bacf423818a8e6d42c56095ad857635.zip |
Fix gun_pool:stop_pool/2,3 with default port
Diffstat (limited to 'test')
-rw-r--r-- | test/pool_SUITE.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/pool_SUITE.erl b/test/pool_SUITE.erl index a48b75d..7643368 100644 --- a/test/pool_SUITE.erl +++ b/test/pool_SUITE.erl @@ -374,3 +374,10 @@ reconnect_h2(Config) -> end || {async, StreamRef} <- Streams2]. %% @todo reconnect_ws + +stop_pool(Config) -> + doc("Confirm the pool can be used for HTTP/1.1 connections."), + Port = config(port, Config), + {ok, ManagerPid} = gun_pool:start_pool("localhost", Port, #{scope => ?FUNCTION_NAME}), + gun_pool:await_up(ManagerPid), + gun_pool:stop_pool("localhost", Port, #{scope => ?FUNCTION_NAME}). |