aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_traffic_SUITE.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2013-04-09 15:57:19 +0200
committerAnders Svensson <[email protected]>2013-04-15 10:10:02 +0200
commit96d04d58fd91062a6e5f96fbc6cce49ee325d087 (patch)
tree1e94d8f450fa4c4a2933254d96896c173b669f70 /lib/diameter/test/diameter_traffic_SUITE.erl
parentba278bc64de031a571c8c5ea01d84287c67307db (diff)
downloadotp-96d04d58fd91062a6e5f96fbc6cce49ee325d087.tar.gz
otp-96d04d58fd91062a6e5f96fbc6cce49ee325d087.tar.bz2
otp-96d04d58fd91062a6e5f96fbc6cce49ee325d087.zip
Lighten up on suite timetraps
Due to sporadic timeouts one some (slow) hosts.
Diffstat (limited to 'lib/diameter/test/diameter_traffic_SUITE.erl')
-rw-r--r--lib/diameter/test/diameter_traffic_SUITE.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/diameter/test/diameter_traffic_SUITE.erl b/lib/diameter/test/diameter_traffic_SUITE.erl
index e3a81b562c..e3caacd795 100644
--- a/lib/diameter/test/diameter_traffic_SUITE.erl
+++ b/lib/diameter/test/diameter_traffic_SUITE.erl
@@ -568,7 +568,7 @@ send_detach(Config) ->
Req = ['STR', {'Termination-Cause', ?LOGOUT}],
Ref = make_ref(),
ok = call(Config, Req, [{extra, [{self(), Ref}]}, detach]),
- Ans = receive {Ref, T} -> T after 2000 -> false end,
+ Ans = receive {Ref, T} -> T end,
['STA', _SessionId, {'Result-Code', ?SUCCESS} | _]
= Ans.
@@ -1089,7 +1089,6 @@ request(#diameter_base_STR{'Session-Id' = SId},
{'Origin-Host', OH},
{'Origin-Realm', OR}]};
-%% send_error
+%% send_error/send_timeout
request(#diameter_base_RAR{}, _Caps) ->
- receive after 2000 -> ok end,
- {protocol_error, ?TOO_BUSY}.
+ receive after 2000 -> {protocol_error, ?TOO_BUSY} end.