From 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 11 Mar 2020 19:45:16 +0100 Subject: Make Gun use the cookie store when configured to --- test/gun_test.erl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/gun_test.erl') diff --git a/test/gun_test.erl b/test/gun_test.erl index a263335..bb162f4 100644 --- a/test/gun_test.erl +++ b/test/gun_test.erl @@ -22,6 +22,10 @@ %% Cowboy listeners. +init_cowboy_tcp(Ref, ProtoOpts, Config) -> + {ok, _} = cowboy:start_clear(Ref, [{port, 0}], ProtoOpts), + [{ref, Ref}, {port, ranch:get_port(Ref)}|Config]. + init_cowboy_tls(Ref, ProtoOpts, Config) -> Opts = ct_helper:get_certs_from_ets(), {ok, _} = cowboy:start_tls(Ref, Opts ++ [{port, 0}], ProtoOpts), -- cgit v1.2.3