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

@ -469,7 +469,7 @@ error_response(Config) ->
[{_, #{
spawn := ProcSpawn,
exit := ProcExit,
reason := {crash, _StackTrace}
reason := {crash, StackTrace}
}}] = maps:to_list(Procs),
true = ProcSpawn =< ProcExit,
%% Confirm other metadata are as expected.
@ -477,7 +477,7 @@ error_response(Config) ->
ref := _,
pid := From,
streamid := 1,
reason := {internal_error, {'EXIT', _Pid, {crash, _StackTrace}}, 'Stream process crashed.'},
reason := {internal_error, {'EXIT', _Pid, {crash, StackTrace}}, 'Stream process crashed.'},
req := #{},
informational := [],
user_data := #{}
@ -526,7 +526,7 @@ error_response_after_reply(Config) ->
[{_, #{
spawn := ProcSpawn,
exit := ProcExit,
reason := {crash, _StackTrace}
reason := {crash, StackTrace}
}}] = maps:to_list(Procs),
true = ProcSpawn =< ProcExit,
%% Confirm other metadata are as expected.
@ -534,7 +534,7 @@ error_response_after_reply(Config) ->
ref := _,
pid := From,
streamid := 1,
reason := {internal_error, {'EXIT', _Pid, {crash, _StackTrace}}, 'Stream process crashed.'},
reason := {internal_error, {'EXIT', _Pid, {crash, StackTrace}}, 'Stream process crashed.'},
req := #{},
informational := [],
user_data := #{}