From 68c6f7f3832c435d93f75e59428d0accbabf340a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 24 Nov 2016 20:53:31 +0100 Subject: Wait before calling ranch:info() in tests Otherwise gen_tcp doesn't have enough time to connect. --- test/acceptor_SUITE.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/acceptor_SUITE.erl b/test/acceptor_SUITE.erl index 9635e4e..b1810df 100644 --- a/test/acceptor_SUITE.erl +++ b/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}, [ -- cgit v1.2.3