mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Skip req_SUITE:read_body_mtu on Windows
On Windows the loopback MTU seems to be set to 0xFFFFFFFF (basically no limit) which makes the test irrelevant.
This commit is contained in:
parent
2888e9e6ef
commit
da5487b5a3
1 changed files with 12 additions and 7 deletions
|
@ -452,13 +452,18 @@ read_body(Config) ->
|
|||
ok.
|
||||
|
||||
read_body_mtu(Config) ->
|
||||
case os:type() of
|
||||
{win32, _} ->
|
||||
{skip, "Loopback MTU size is 0xFFFFFFFF on Windows."};
|
||||
{unix, _} ->
|
||||
doc("Request body whose sizes are around the MTU."),
|
||||
MTU = ct_helper:get_loopback_mtu(),
|
||||
_ = [begin
|
||||
Body = <<0:Size/unit:8>>,
|
||||
Body = do_body("POST", "/full/read_body", [], Body, Config)
|
||||
end || Size <- lists:seq(MTU - 10, MTU + 10)],
|
||||
ok.
|
||||
ok
|
||||
end.
|
||||
|
||||
read_body_period(Config) ->
|
||||
doc("Read the request body for at most 2 seconds."),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue