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

Allow {error, enotconn} as test success in security_SUITE

This happens from time to time on Windows and is partially
due to how the test is written.
This commit is contained in:
Loïc Hoguin 2020-04-07 10:18:29 +02:00
parent e51ac66728
commit b339713461
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -125,6 +125,9 @@ http2_empty_frame_flooding_data(Config) ->
%% We also accept the connection being closed immediately,
%% which may happen because we send the GOAWAY right before closing.
{error, closed} ->
ok;
%% At least on Windows this might also occur.
{error, enotconn} ->
ok
end.
@ -149,6 +152,9 @@ http2_empty_frame_flooding_headers_continuation(Config) ->
%% We also accept the connection being closed immediately,
%% which may happen because we send the GOAWAY right before closing.
{error, closed} ->
ok;
%% At least on Windows this might also occur.
{error, enotconn} ->
ok
end.