diff options
author | Anders Svensson <[email protected]> | 2017-08-03 19:26:02 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2017-08-10 11:16:00 +0200 |
commit | 6e20cd446428685e975a2e51a009c07b1ea2066a (patch) | |
tree | d689ed676afea5bebf2be0b8fc10c7733f0c59fd /lib/diameter/test | |
parent | c319fb83523f6a70b2e6c38ad17056bae0ff62f4 (diff) | |
download | otp-6e20cd446428685e975a2e51a009c07b1ea2066a.tar.gz otp-6e20cd446428685e975a2e51a009c07b1ea2066a.tar.bz2 otp-6e20cd446428685e975a2e51a009c07b1ea2066a.zip |
Sleep randomly at the start of (parallel) traffic testcases
Diffstat (limited to 'lib/diameter/test')
-rw-r--r-- | lib/diameter/test/diameter_traffic_SUITE.erl | 4 |
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. |