0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10:24 +00:00

Run http_SUITE:graceful_shutdown_listener separately

To avoid intermittent errors that are more likely as more
tests are calling cowboy:stop_listener.
This commit is contained in:
Loïc Hoguin 2025-02-10 15:59:52 +01:00
parent 053e233c56
commit 882a4f4591
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -28,9 +28,16 @@
-import(cowboy_test, [raw_recv/3]). -import(cowboy_test, [raw_recv/3]).
-import(cowboy_test, [raw_expect_recv/2]). -import(cowboy_test, [raw_expect_recv/2]).
all() -> [{group, clear}]. all() ->
[{group, clear_no_parallel}, {group, clear}].
groups() -> [{clear, [parallel], ct_helper:all(?MODULE)}]. groups() ->
[
%% cowboy:stop_listener can be slow when called many times
%% in parallel so we must run this test separately from the others.
{clear_no_parallel, [], [graceful_shutdown_listener]},
{clear, [parallel], ct_helper:all(?MODULE) -- [graceful_shutdown_listener]}
].
init_per_group(Name, Config) -> init_per_group(Name, Config) ->
cowboy_test:init_http(Name, #{ cowboy_test:init_http(Name, #{