aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-04-07 10:18:29 +0200
committerLoïc Hoguin <[email protected]>2020-04-07 10:18:29 +0200
commitb33971346116640013eeacc24ed273a2a5eb1c06 (patch)
treead3be04e6a8b5787ff1e45c65e7e4aaddeb4553c /test
parente51ac66728a583e0db7da0aa958959573d65763c (diff)
downloadcowboy-b33971346116640013eeacc24ed273a2a5eb1c06.tar.gz
cowboy-b33971346116640013eeacc24ed273a2a5eb1c06.tar.bz2
cowboy-b33971346116640013eeacc24ed273a2a5eb1c06.zip
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.
Diffstat (limited to 'test')
-rw-r--r--test/security_SUITE.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/security_SUITE.erl b/test/security_SUITE.erl
index 0e72d74..f06cec5 100644
--- a/test/security_SUITE.erl
+++ b/test/security_SUITE.erl
@@ -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.