mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Disable the tracer suite when compiled natively
This commit is contained in:
parent
ce5ab4b49a
commit
aedd274e26
1 changed files with 7 additions and 2 deletions
|
@ -25,8 +25,13 @@
|
|||
%% 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().
|
||||
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.
|
||||
|
||||
%% We want tests for each group to execute sequentially
|
||||
%% because we need to modify the protocol options. Groups
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue