aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-08-03 19:26:02 +0200
committerAnders Svensson <[email protected]>2017-08-10 11:16:00 +0200
commit6e20cd446428685e975a2e51a009c07b1ea2066a (patch)
treed689ed676afea5bebf2be0b8fc10c7733f0c59fd /lib/diameter
parentc319fb83523f6a70b2e6c38ad17056bae0ff62f4 (diff)
downloadotp-6e20cd446428685e975a2e51a009c07b1ea2066a.tar.gz
otp-6e20cd446428685e975a2e51a009c07b1ea2066a.tar.bz2
otp-6e20cd446428685e975a2e51a009c07b1ea2066a.zip
Sleep randomly at the start of (parallel) traffic testcases
Diffstat (limited to 'lib/diameter')
-rw-r--r--lib/diameter/test/diameter_traffic_SUITE.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/diameter/test/diameter_traffic_SUITE.erl b/lib/diameter/test/diameter_traffic_SUITE.erl
index 0dbd363dc6..1760d7c5dc 100644
--- a/lib/diameter/test/diameter_traffic_SUITE.erl
+++ b/lib/diameter/test/diameter_traffic_SUITE.erl
@@ -318,7 +318,7 @@ init_per_group(Name, Config)
Name == parallel ->
start_services(Config),
add_transports(Config),
- Config;
+ [{sleep, Name == parallel} | Config];
init_per_group(sctp = Name, Config) ->
{_, Sctp} = lists:keyfind(Name, 1, Config),
@@ -380,6 +380,8 @@ init_per_testcase(Name, Config) ->
_ when not Run ->
{skip, random};
_ ->
+ proplists:get_value(sleep, Config, false)
+ andalso timer:sleep(rand:uniform(200)),
[{testcase, Name} | Config]
end.