Browse Source

Fix intermittent test failure of misc_wait_for_connections

j.uhlig 7 years ago
parent
commit
ca26ed23ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/acceptor_SUITE.erl

+ 1 - 1
test/acceptor_SUITE.erl

@@ -287,7 +287,7 @@ misc_wait_for_connections(_) ->
 	Pid2EQ = do_create_waiter(Self, Name, '==', 2),
 	Pid2EQ = do_create_waiter(Self, Name, '==', 2),
 	{ok, _} = ranch:start_listener(Name,
 	{ok, _} = ranch:start_listener(Name,
 		ranch_tcp, [{num_acceptors, 1}],
 		ranch_tcp, [{num_acceptors, 1}],
-		remove_conn_and_wait_protocol, [{remove, true, 2500}]),
+		echo_protocol, []),
 	Port = ranch:get_port(Name),
 	Port = ranch:get_port(Name),
 	%% Create some connections, ensure that waiters respond.
 	%% Create some connections, ensure that waiters respond.
 	{ok, Sock1} = gen_tcp:connect("localhost", Port, []),
 	{ok, Sock1} = gen_tcp:connect("localhost", Port, []),