aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_util.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2016-05-24 14:58:50 +0200
committerAnders Svensson <[email protected]>2016-05-30 08:56:15 +0200
commit80dc4f14b21cf316a8000f91cd77b1f0653afa7c (patch)
tree100db1b5357bf27415e08270d272c3229c1c0922 /lib/diameter/test/diameter_util.erl
parent5ca5fb71695ccdf7267007b8405f7a13497a2f17 (diff)
downloadotp-80dc4f14b21cf316a8000f91cd77b1f0653afa7c.tar.gz
otp-80dc4f14b21cf316a8000f91cd77b1f0653afa7c.tar.bz2
otp-80dc4f14b21cf316a8000f91cd77b1f0653afa7c.zip
Fix leaking transports in traffic/relay suites
Listening transports weren't removed, which diameter_reg:subs/0 revealed.
Diffstat (limited to 'lib/diameter/test/diameter_util.erl')
-rw-r--r--lib/diameter/test/diameter_util.erl11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/diameter/test/diameter_util.erl b/lib/diameter/test/diameter_util.erl
index 52b747e99c..f26f1e999a 100644
--- a/lib/diameter/test/diameter_util.erl
+++ b/lib/diameter/test/diameter_util.erl
@@ -345,11 +345,12 @@ transport(SvcName, Ref) ->
disconnect(Client, Ref, Server, LRef) ->
true = diameter:subscribe(Server),
ok = diameter:remove_transport(Client, Ref),
- ok = receive
- {diameter_event, Server, {down, LRef, _, _}} -> ok
- after 10000 ->
- {Client, Ref, Server, LRef, process_info(self(), messages)}
- end.
+ receive
+ {diameter_event, Server, {down, LRef, _, _}} ->
+ ok
+ after 10000 ->
+ {Client, Ref, Server, LRef, process_info(self(), messages)}
+ end.
%% ---------------------------------------------------------------------------