aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2013-07-23 13:48:49 +0200
committerAnders Svensson <[email protected]>2013-07-23 13:48:49 +0200
commitaeefa171ec8478438d60ef1ce11db387bacbfdaf (patch)
tree426b3057ea0658cf4d48592c062f6654a616c0ad /lib/diameter/test
parent65e7ce2dfacd2ed90b6fe3dd683a26f9d267d1e1 (diff)
parent4c4cf7d15b5179808e7e614694113e47277fd22d (diff)
downloadotp-aeefa171ec8478438d60ef1ce11db387bacbfdaf.tar.gz
otp-aeefa171ec8478438d60ef1ce11db387bacbfdaf.tar.bz2
otp-aeefa171ec8478438d60ef1ce11db387bacbfdaf.zip
Merge branch 'maint'
Diffstat (limited to 'lib/diameter/test')
-rw-r--r--lib/diameter/test/diameter_transport_SUITE.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/diameter/test/diameter_transport_SUITE.erl b/lib/diameter/test/diameter_transport_SUITE.erl
index 97f4cec11f..9408fae62c 100644
--- a/lib/diameter/test/diameter_transport_SUITE.erl
+++ b/lib/diameter/test/diameter_transport_SUITE.erl
@@ -180,12 +180,13 @@ reconnect({listen, Ref}) ->
[_] = diameter_reg:wait({diameter_tcp, listener, {LRef, '_'}}),
true = diameter_reg:add_new({?MODULE, Ref, LRef}),
- %% Wait for partner to request transport death: kill to force the
- %% peer to reconnect.
+ %% Wait for partner to request transport death.
TPid = abort(SvcName, LRef, Ref),
+ %% Kill transport to force the peer to reconnect.
exit(TPid, kill),
+ %% Wait for the partner again.
abort(SvcName, LRef, Ref);
reconnect({connect, Ref}) ->
@@ -200,7 +201,7 @@ reconnect({connect, Ref}) ->
%% reconnection attempts.
abort(SvcName, Pid, Ref),
- %% Transport does down and is reestablished.
+ %% Transport goes down and is reestablished.
?RECV(#diameter_event{service = SvcName, info = {down, CRef, _, _}}),
?RECV(#diameter_event{service = SvcName, info = {reconnect, CRef, _}}),
?RECV(#diameter_event{service = SvcName, info = {up, CRef, _, _, _}}),