Просмотр исходного кода

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.
Loïc Hoguin 5 лет назад
Родитель
Сommit
b339713461
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      test/security_SUITE.erl

+ 6 - 0
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.