From 52b989079bacf423818a8e6d42c56095ad857635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 9 Feb 2021 14:36:39 +0100 Subject: Fix gun_pool:stop_pool/2,3 with default port --- test/pool_SUITE.erl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/pool_SUITE.erl') 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}). -- cgit v1.2.3