From a8335c63df31f21d88e9d7d1f2b64d32a674cd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 31 Oct 2018 10:50:57 +0100 Subject: Always dialyze tests and fix some cowboy_req specs --- test/old_http_SUITE_data/http_errors.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/old_http_SUITE_data') 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); -- cgit v1.2.3