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

Use init_per_suite instead of all/0 for init in tracer_SUITE

This commit is contained in:
Loïc Hoguin 2023-12-01 15:46:23 +01:00
parent 521266326d
commit ca6477af7b
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -29,9 +29,15 @@ suite() ->
%% We initialize trace patterns here. Appropriate would be in
%% init_per_suite/1, but this works just as well.
all() ->
cowboy_tracer_h:set_trace_patterns(),
cowboy_test:common_all().
init_per_suite(Config) ->
cowboy_tracer_h:set_trace_patterns(),
Config.
end_per_suite(_) ->
ok.
%% We want tests for each group to execute sequentially
%% because we need to modify the protocol options. Groups
%% can run in parallel however.