diff options
author | Loïc Hoguin <[email protected]> | 2018-05-17 11:35:08 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-05-17 11:35:08 +0200 |
commit | 619273e10e91cbb94b2d256ff94e469ff865ee7e (patch) | |
tree | bbf96a0c019900875516a916f4583bcbcf9518b6 /test/static_handler_SUITE.erl | |
parent | aca57c2e3325548f56f2ce5821ac75e5c7aa117f (diff) | |
download | cowboy-619273e10e91cbb94b2d256ff94e469ff865ee7e.tar.gz cowboy-619273e10e91cbb94b2d256ff94e469ff865ee7e.tar.bz2 cowboy-619273e10e91cbb94b2d256ff94e469ff865ee7e.zip |
Speed up testing large static files, 32MB instead of 512MB
Diffstat (limited to 'test/static_handler_SUITE.erl')
-rw-r--r-- | test/static_handler_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/static_handler_SUITE.erl b/test/static_handler_SUITE.erl index 9cbe371..43085b8 100644 --- a/test/static_handler_SUITE.erl +++ b/test/static_handler_SUITE.erl @@ -107,7 +107,7 @@ end_per_group(Name, _) -> init_large_file(Filename) -> case os:type() of {unix, _} -> - "" = os:cmd("truncate -s 512M " ++ Filename), + "" = os:cmd("truncate -s 32M " ++ Filename), ok; {win32, _} -> ok @@ -422,7 +422,7 @@ dir_large_file(Config) -> [{<<"accept-encoding">>, <<"gzip">>}]), {response, nofin, 200, RespHeaders} = gun:await(ConnPid, Ref), {_, <<"application/octet-stream">>} = lists:keyfind(<<"content-type">>, 1, RespHeaders), - Size = 512*1024*1024, + Size = 32*1024*1024, {ok, Size} = do_dir_large_file(ConnPid, Ref, 0), ok. |