mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Disable ws_SUITE:unlimited_connections on Windows
This commit is contained in:
parent
3f37985d2c
commit
4274f077a6
1 changed files with 11 additions and 5 deletions
|
@ -77,11 +77,17 @@ init_dispatch() ->
|
||||||
unlimited_connections(Config) ->
|
unlimited_connections(Config) ->
|
||||||
doc("Websocket connections are not limited. The connections "
|
doc("Websocket connections are not limited. The connections "
|
||||||
"are removed from the count after the handshake completes."),
|
"are removed from the count after the handshake completes."),
|
||||||
case list_to_integer(os:cmd("printf `ulimit -n`")) of
|
case os:type() of
|
||||||
Limit when Limit > 6100 ->
|
{win32, _} ->
|
||||||
do_unlimited_connections(Config);
|
{skip, "Tests that use too many sockets are disabled on Windows "
|
||||||
_ ->
|
"to prevent intermittent failures."};
|
||||||
{skip, "`ulimit -n` reports a limit too low for this test."}
|
{unix, _} ->
|
||||||
|
case list_to_integer(os:cmd("printf `ulimit -n`")) of
|
||||||
|
Limit when Limit > 6100 ->
|
||||||
|
do_unlimited_connections(Config);
|
||||||
|
_ ->
|
||||||
|
{skip, "`ulimit -n` reports a limit too low for this test."}
|
||||||
|
end
|
||||||
end.
|
end.
|
||||||
|
|
||||||
do_unlimited_connections(Config) ->
|
do_unlimited_connections(Config) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue