aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-05-31 14:39:58 +0200
committerLukas Larsson <[email protected]>2016-06-14 10:09:37 +0200
commit7187d9a2c3728b1b32e9403ebb97e53c66e9b261 (patch)
tree0a11af5b37ae9d4579accfb7b0b8e31fd0602f5b /lib/kernel/test
parent4a96eb9dadf453724860a7e2e060894dca360fd6 (diff)
downloadotp-7187d9a2c3728b1b32e9403ebb97e53c66e9b261.tar.gz
otp-7187d9a2c3728b1b32e9403ebb97e53c66e9b261.tar.bz2
otp-7187d9a2c3728b1b32e9403ebb97e53c66e9b261.zip
kernel: Fix t_recv_delim on bsd
TCP messages to not travel instantly on loopback on bsd, to we have to wait a little while for them to arrive.
Diffstat (limited to 'lib/kernel/test')
-rw-r--r--lib/kernel/test/gen_tcp_api_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/test/gen_tcp_api_SUITE.erl b/lib/kernel/test/gen_tcp_api_SUITE.erl
index 6f6f53309e..54298e6309 100644
--- a/lib/kernel/test/gen_tcp_api_SUITE.erl
+++ b/lib/kernel/test/gen_tcp_api_SUITE.erl
@@ -135,8 +135,8 @@ t_recv_delim(Config) when is_list(Config) ->
{ok, Client} = gen_tcp:connect(localhost, Port, Opts),
{ok, A} = gen_tcp:accept(L),
ok = gen_tcp:send(A, "abcXefgX"),
- {ok, "abcX"} = gen_tcp:recv(Client, 0, 0),
- {ok, "efgX"} = gen_tcp:recv(Client, 0, 0),
+ {ok, "abcX"} = gen_tcp:recv(Client, 0, 200),
+ {ok, "efgX"} = gen_tcp:recv(Client, 0, 200),
ok = gen_tcp:close(Client),
ok = gen_tcp:close(A),
ok.