Browse Source

Update gun_down messages in test suites

Loïc Hoguin 5 years ago
parent
commit
e1d4524118
4 changed files with 4 additions and 4 deletions
  1. 1 1
      test/cowboy_test.erl
  2. 1 1
      test/req_SUITE.erl
  3. 1 1
      test/rfc7231_SUITE.erl
  4. 1 1
      test/ws_handler_SUITE.erl

+ 1 - 1
test/cowboy_test.erl

@@ -117,7 +117,7 @@ gun_open(Config, Opts) ->
 	ConnPid.
 
 gun_down(ConnPid) ->
-	receive {gun_down, ConnPid, _, _, _, _} -> ok
+	receive {gun_down, ConnPid, _, _, _} -> ok
 	after 500 -> error(timeout) end.
 
 %% Support functions for testing using a raw socket.

+ 1 - 1
test/req_SUITE.erl

@@ -962,7 +962,7 @@ stream_body_content_length_nofin_error(Config) ->
 				%% The server closes the connection when the body couldn't be sent fully.
 				{error, {stream_error, closed}} ->
 					receive
-						{gun_down, ConnPid, _, _, _, _} ->
+						{gun_down, ConnPid, _, _, _} ->
 							gun:close(ConnPid)
 					after 1000 ->
 						error(timeout)

+ 1 - 1
test/rfc7231_SUITE.erl

@@ -325,7 +325,7 @@ do_expect_discard_body_close(Config) ->
 	{ok, <<"POST">>} = gun:await_body(ConnPid, Ref1),
 	%% The connection is gone.
 	receive
-		{gun_down, ConnPid, _, closed, _, _} ->
+		{gun_down, ConnPid, _, closed, _} ->
 			ok
 	after 1000 ->
 		error(timeout)

+ 1 - 1
test/ws_handler_SUITE.erl

@@ -281,7 +281,7 @@ websocket_set_options_idle_timeout(Config) ->
 	%% the connection gets closed soon after.
 	gun:ws_send(ConnPid, {text, <<"idle_timeout_short">>}),
 	receive
-		{gun_down, ConnPid, _, _, _, _} ->
+		{gun_down, ConnPid, _, _, _} ->
 			ok
 	after 2000 ->
 		error(timeout)