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:
parent
e51ac66728
commit
b339713461
1 changed files with 6 additions and 0 deletions
|
@ -125,6 +125,9 @@ http2_empty_frame_flooding_data(Config) ->
|
||||||
%% We also accept the connection being closed immediately,
|
%% We also accept the connection being closed immediately,
|
||||||
%% which may happen because we send the GOAWAY right before closing.
|
%% which may happen because we send the GOAWAY right before closing.
|
||||||
{error, closed} ->
|
{error, closed} ->
|
||||||
|
ok;
|
||||||
|
%% At least on Windows this might also occur.
|
||||||
|
{error, enotconn} ->
|
||||||
ok
|
ok
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
@ -149,6 +152,9 @@ http2_empty_frame_flooding_headers_continuation(Config) ->
|
||||||
%% We also accept the connection being closed immediately,
|
%% We also accept the connection being closed immediately,
|
||||||
%% which may happen because we send the GOAWAY right before closing.
|
%% which may happen because we send the GOAWAY right before closing.
|
||||||
{error, closed} ->
|
{error, closed} ->
|
||||||
|
ok;
|
||||||
|
%% At least on Windows this might also occur.
|
||||||
|
{error, enotconn} ->
|
||||||
ok
|
ok
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue