aboutsummaryrefslogtreecommitdiffstats
path: root/test/static_handler_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-10-31 10:50:57 +0100
committerLoïc Hoguin <[email protected]>2018-10-31 10:50:57 +0100
commita8335c63df31f21d88e9d7d1f2b64d32a674cd7a (patch)
tree2c8adc564263b49621ed969e0e08976258a35ffa /test/static_handler_SUITE.erl
parent07078eb47bfc2a774e4ce00d2a215c301f4f4ea7 (diff)
downloadcowboy-a8335c63df31f21d88e9d7d1f2b64d32a674cd7a.tar.gz
cowboy-a8335c63df31f21d88e9d7d1f2b64d32a674cd7a.tar.bz2
cowboy-a8335c63df31f21d88e9d7d1f2b64d32a674cd7a.zip
Always dialyze tests and fix some cowboy_req specs
Diffstat (limited to 'test/static_handler_SUITE.erl')
-rw-r--r--test/static_handler_SUITE.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/static_handler_SUITE.erl b/test/static_handler_SUITE.erl
index 43085b8..9b7a1dc 100644
--- a/test/static_handler_SUITE.erl
+++ b/test/static_handler_SUITE.erl
@@ -80,7 +80,7 @@ end_per_suite(Config) ->
%% Special directory.
CharDir = config(char_dir, Config),
_ = [file:delete(CharDir ++ [$/, C]) || C <- lists:seq(0, 127)],
- file:del_dir(CharDir),
+ _ = file:del_dir(CharDir),
%% Static directories.
StaticDir = config(static_dir, Config),
PrivDir = code:priv_dir(ct_helper) ++ "/static",
@@ -162,6 +162,7 @@ init_dispatch(Config) ->
%% Internal functions.
+-spec do_etag_crash(_, _, _) -> no_return().
do_etag_crash(_, _, _) ->
ct_helper_error_h:ignore(?MODULE, do_etag_crash, 3),
exit(crash).
@@ -169,6 +170,7 @@ do_etag_crash(_, _, _) ->
do_etag_custom(_, _, _) ->
{strong, <<"etag">>}.
+-spec do_mime_crash(_) -> no_return().
do_mime_crash(_) ->
ct_helper_error_h:ignore(?MODULE, do_mime_crash, 1),
exit(crash).