diff options
Diffstat (limited to 'test/http_SUITE_data/http_errors.erl')
-rw-r--r-- | test/http_SUITE_data/http_errors.erl | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/http_SUITE_data/http_errors.erl b/test/http_SUITE_data/http_errors.erl deleted file mode 100644 index 14e3d09..0000000 --- a/test/http_SUITE_data/http_errors.erl +++ /dev/null @@ -1,17 +0,0 @@ -%% Feel free to use, reuse and abuse the code in this file. - --module(http_errors). - --export([init/2]). - -init(Req, _Opts) -> - #{'case' := Case} = cowboy_req:match_qs(['case'], Req), - case_init(Case, Req). - -case_init(<<"init_before_reply">> = Case, _Req) -> - ct_helper_error_h:ignore(?MODULE, case_init, 2), - error(Case); -case_init(<<"init_after_reply">> = Case, Req) -> - ct_helper_error_h:ignore(?MODULE, case_init, 2), - _ = cowboy_req:reply(200, #{}, "http_handler_crashes", Req), - error(Case). |