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

Fix OTP-26+ warnings in test suites

This commit is contained in:
Loïc Hoguin 2023-03-30 10:35:08 +02:00
parent 4958af5745
commit 251e70b219
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 6 additions and 11 deletions

View file

@ -29,13 +29,8 @@ suite() ->
%% We initialize trace patterns here. Appropriate would be in
%% init_per_suite/1, but this works just as well.
all() ->
case code:is_module_native(?MODULE) of
true ->
{skip, "The Cowboy tracer is not compatible with native code."};
false ->
cowboy_tracer_h:set_trace_patterns(),
cowboy_test:common_all()
end.
cowboy_tracer_h:set_trace_patterns(),
cowboy_test:common_all().
%% We want tests for each group to execute sequentially
%% because we need to modify the protocol options. Groups