Browse Source

Hopefully fix an intermittent test failure

Loïc Hoguin 9 years ago
parent
commit
157b6b31c4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/acceptor_SUITE.erl

+ 1 - 0
test/acceptor_SUITE.erl

@@ -450,6 +450,7 @@ supervisor_conns_alive(_) ->
 	TcpPort = ranch:get_port(Name),
 	{ok, Socket} = gen_tcp:connect("localhost", TcpPort,
 		[binary, {active, true}, {packet, raw}]),
+	receive after 500 -> ok end,
 	%% Shut the socket down
 	ok = gen_tcp:close(LSocket),
 	%% Assert that client is still viable.