mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20: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:
parent
053e233c56
commit
882a4f4591
1 changed files with 9 additions and 2 deletions
|
@ -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, #{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue