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

Wait before calling ranch:info() in tests

Otherwise gen_tcp doesn't have enough time to connect.
Loïc Hoguin 8 лет назад
Родитель
Сommit
68c6f7f383
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      test/acceptor_SUITE.erl

+ 1 - 0
test/acceptor_SUITE.erl

@@ -97,6 +97,7 @@ misc_info(_) ->
 	receive after 250 -> ok end,
 	{ok, _} = gen_tcp:connect("localhost", Port1, [binary, {active, false}, {packet, raw}]),
 	{ok, _} = gen_tcp:connect("localhost", Port1, [binary, {active, false}, {packet, raw}]),
+	receive after 250 -> ok end,
 	%% Confirm the info returned by Ranch is correct.
 	[
 		{{misc_info, act}, [