diff options
author | Anders Svensson <[email protected]> | 2016-05-24 14:58:50 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2016-05-30 08:56:15 +0200 |
commit | 80dc4f14b21cf316a8000f91cd77b1f0653afa7c (patch) | |
tree | 100db1b5357bf27415e08270d272c3229c1c0922 /lib/diameter/test/diameter_traffic_SUITE.erl | |
parent | 5ca5fb71695ccdf7267007b8405f7a13497a2f17 (diff) | |
download | otp-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_traffic_SUITE.erl')
-rw-r--r-- | lib/diameter/test/diameter_traffic_SUITE.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/diameter/test/diameter_traffic_SUITE.erl b/lib/diameter/test/diameter_traffic_SUITE.erl index 976abf9138..6f3a4801ee 100644 --- a/lib/diameter/test/diameter_traffic_SUITE.erl +++ b/lib/diameter/test/diameter_traffic_SUITE.erl @@ -428,7 +428,11 @@ remove_transports(Config) -> server_service = SN} = group(Config), [LRef | Cs] = ?util:read_priv(Config, "transport"), - [?util:disconnect(CN, C, SN, LRef) || C <- Cs]. + try + [] = [T || C <- Cs, T <- [?util:disconnect(CN, C, SN, LRef)], T /= ok] + after + ok = diameter:remove_transport(SN, LRef) + end. stop_services(Config) -> #group{client_service = CN, |