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:
parent
4958af5745
commit
251e70b219
2 changed files with 6 additions and 11 deletions
|
@ -469,7 +469,7 @@ error_response(Config) ->
|
||||||
[{_, #{
|
[{_, #{
|
||||||
spawn := ProcSpawn,
|
spawn := ProcSpawn,
|
||||||
exit := ProcExit,
|
exit := ProcExit,
|
||||||
reason := {crash, _StackTrace}
|
reason := {crash, StackTrace}
|
||||||
}}] = maps:to_list(Procs),
|
}}] = maps:to_list(Procs),
|
||||||
true = ProcSpawn =< ProcExit,
|
true = ProcSpawn =< ProcExit,
|
||||||
%% Confirm other metadata are as expected.
|
%% Confirm other metadata are as expected.
|
||||||
|
@ -477,7 +477,7 @@ error_response(Config) ->
|
||||||
ref := _,
|
ref := _,
|
||||||
pid := From,
|
pid := From,
|
||||||
streamid := 1,
|
streamid := 1,
|
||||||
reason := {internal_error, {'EXIT', _Pid, {crash, _StackTrace}}, 'Stream process crashed.'},
|
reason := {internal_error, {'EXIT', _Pid, {crash, StackTrace}}, 'Stream process crashed.'},
|
||||||
req := #{},
|
req := #{},
|
||||||
informational := [],
|
informational := [],
|
||||||
user_data := #{}
|
user_data := #{}
|
||||||
|
@ -526,7 +526,7 @@ error_response_after_reply(Config) ->
|
||||||
[{_, #{
|
[{_, #{
|
||||||
spawn := ProcSpawn,
|
spawn := ProcSpawn,
|
||||||
exit := ProcExit,
|
exit := ProcExit,
|
||||||
reason := {crash, _StackTrace}
|
reason := {crash, StackTrace}
|
||||||
}}] = maps:to_list(Procs),
|
}}] = maps:to_list(Procs),
|
||||||
true = ProcSpawn =< ProcExit,
|
true = ProcSpawn =< ProcExit,
|
||||||
%% Confirm other metadata are as expected.
|
%% Confirm other metadata are as expected.
|
||||||
|
@ -534,7 +534,7 @@ error_response_after_reply(Config) ->
|
||||||
ref := _,
|
ref := _,
|
||||||
pid := From,
|
pid := From,
|
||||||
streamid := 1,
|
streamid := 1,
|
||||||
reason := {internal_error, {'EXIT', _Pid, {crash, _StackTrace}}, 'Stream process crashed.'},
|
reason := {internal_error, {'EXIT', _Pid, {crash, StackTrace}}, 'Stream process crashed.'},
|
||||||
req := #{},
|
req := #{},
|
||||||
informational := [],
|
informational := [],
|
||||||
user_data := #{}
|
user_data := #{}
|
||||||
|
|
|
@ -29,13 +29,8 @@ suite() ->
|
||||||
%% We initialize trace patterns here. Appropriate would be in
|
%% We initialize trace patterns here. Appropriate would be in
|
||||||
%% init_per_suite/1, but this works just as well.
|
%% init_per_suite/1, but this works just as well.
|
||||||
all() ->
|
all() ->
|
||||||
case code:is_module_native(?MODULE) of
|
cowboy_tracer_h:set_trace_patterns(),
|
||||||
true ->
|
cowboy_test:common_all().
|
||||||
{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
|
%% We want tests for each group to execute sequentially
|
||||||
%% because we need to modify the protocol options. Groups
|
%% because we need to modify the protocol options. Groups
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue