aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-11-24 20:53:31 +0100
committerLoïc Hoguin <[email protected]>2016-11-24 20:53:31 +0100
commit68c6f7f3832c435d93f75e59428d0accbabf340a (patch)
tree68122a85ef6a794226ca42892b60c4260da1058a /test
parent9db28a09e8f7695f67297fff7f7144bac2061cc2 (diff)
downloadranch-68c6f7f3832c435d93f75e59428d0accbabf340a.tar.gz
ranch-68c6f7f3832c435d93f75e59428d0accbabf340a.tar.bz2
ranch-68c6f7f3832c435d93f75e59428d0accbabf340a.zip
Wait before calling ranch:info() in tests
Otherwise gen_tcp doesn't have enough time to connect.
Diffstat (limited to 'test')
-rw-r--r--test/acceptor_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
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}, [