0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

The static suite's large file is not created on Windows

This commit is contained in:
Loïc Hoguin 2017-11-19 16:13:48 +01:00
parent 344cec95b4
commit 8be803cb07
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -83,8 +83,9 @@ end_per_suite(Config) ->
%% Static directories. %% Static directories.
StaticDir = config(static_dir, Config), StaticDir = config(static_dir, Config),
PrivDir = code:priv_dir(ct_helper) ++ "/static", PrivDir = code:priv_dir(ct_helper) ++ "/static",
ok = file:delete(StaticDir ++ "/large.bin"), %% This file is not created on Windows.
ok = file:delete(PrivDir ++ "/large.bin"), _ = file:delete(StaticDir ++ "/large.bin"),
_ = file:delete(PrivDir ++ "/large.bin"),
ct_helper:delete_static_dir(StaticDir), ct_helper:delete_static_dir(StaticDir),
ct_helper:delete_static_dir(PrivDir). ct_helper:delete_static_dir(PrivDir).