aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-12-12 17:49:18 +0100
committerAnders Svensson <[email protected]>2011-12-16 18:25:29 +0100
commit5bc89247491d8f929b482d21d503c024fe06300f (patch)
tree5cf6bb0b1993c8ae7a457f6441bb76203afa7e57 /lib/diameter/test
parent859d9471d15422debf974294223a33e15c728e46 (diff)
downloadotp-5bc89247491d8f929b482d21d503c024fe06300f.tar.gz
otp-5bc89247491d8f929b482d21d503c024fe06300f.tar.bz2
otp-5bc89247491d8f929b482d21d503c024fe06300f.zip
Remove delay from connect in transport suite
There should be no need for it, previous introduction was misguided.
Diffstat (limited to 'lib/diameter/test')
-rw-r--r--lib/diameter/test/diameter_transport_SUITE.erl17
1 files changed, 2 insertions, 15 deletions
diff --git a/lib/diameter/test/diameter_transport_SUITE.erl b/lib/diameter/test/diameter_transport_SUITE.erl
index 138135b0df..24d7d44006 100644
--- a/lib/diameter/test/diameter_transport_SUITE.erl
+++ b/lib/diameter/test/diameter_transport_SUITE.erl
@@ -217,7 +217,7 @@ init(gen_connect, {Prot, Ref}) ->
[PortNr] = ?util:lport(Prot, Ref, 20),
%% Connect, send a message and receive it back.
- {ok, Sock} = gen_connect(Prot, PortNr, Ref),
+ {ok, Sock} = gen_connect(Prot, PortNr),
Bin = make_msg(),
ok = gen_send(Prot, Sock, Bin),
Bin = gen_recv(Prot, Sock);
@@ -356,20 +356,7 @@ tmod(tcp) ->
%% ===========================================================================
-%% gen_connect/3
-
-gen_connect(Prot, PortNr, Ref) ->
- Pid = sync(connect, Ref),
-
- %% Stagger connect attempts to avoid the situation that no
- %% transport process is accepting yet.
- receive after 250 -> ok end,
-
- try
- gen_connect(Prot, PortNr)
- after
- Pid ! Ref
- end.
+%% gen_connect/2
gen_connect(sctp = P, PortNr) ->
{ok, Sock} = Ok = gen_sctp:open([{ip, ?ADDR}, {port, 0} | ?SCTP_OPTS]),