diff options
author | Loïc Hoguin <[email protected]> | 2018-10-31 10:50:57 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-10-31 10:50:57 +0100 |
commit | a8335c63df31f21d88e9d7d1f2b64d32a674cd7a (patch) | |
tree | 2c8adc564263b49621ed969e0e08976258a35ffa /test/old_http_SUITE_data/http_errors.erl | |
parent | 07078eb47bfc2a774e4ce00d2a215c301f4f4ea7 (diff) | |
download | cowboy-a8335c63df31f21d88e9d7d1f2b64d32a674cd7a.tar.gz cowboy-a8335c63df31f21d88e9d7d1f2b64d32a674cd7a.tar.bz2 cowboy-a8335c63df31f21d88e9d7d1f2b64d32a674cd7a.zip |
Always dialyze tests and fix some cowboy_req specs
Diffstat (limited to 'test/old_http_SUITE_data/http_errors.erl')
-rw-r--r-- | test/old_http_SUITE_data/http_errors.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/old_http_SUITE_data/http_errors.erl b/test/old_http_SUITE_data/http_errors.erl index 14e3d09..9e376a2 100644 --- a/test/old_http_SUITE_data/http_errors.erl +++ b/test/old_http_SUITE_data/http_errors.erl @@ -4,10 +4,12 @@ -export([init/2]). +-spec init(_, _) -> no_return(). init(Req, _Opts) -> #{'case' := Case} = cowboy_req:match_qs(['case'], Req), case_init(Case, Req). +-spec case_init(_, _) -> no_return(). case_init(<<"init_before_reply">> = Case, _Req) -> ct_helper_error_h:ignore(?MODULE, case_init, 2), error(Case); |