summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-07-29 07:56:12 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-07-29 07:56:12 +0100
commit9ea8ba57e5f66c53d591914cb9dcf171ebf1a79b (patch)
tree3a671e7adeef9544e0fa3163f2325826590180e9
parent2bdf63c7621f7db1f02b8678d8ae9633013f3d70 (diff)
downloadrabbitmq-server-9ea8ba57e5f66c53d591914cb9dcf171ebf1a79b.tar.gz
reduce time taken by tests
-rw-r--r--src/test_sup.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test_sup.erl b/src/test_sup.erl
index 3e126d0d..655370a1 100644
--- a/src/test_sup.erl
+++ b/src/test_sup.erl
@@ -40,12 +40,12 @@ test_supervisor_delayed_restart() ->
{ok, SupPid} = start_link(),
ok = ping_child(SupPid),
ok = exit_child(SupPid),
- timer:sleep(1000),
+ timer:sleep(10),
ok = ping_child(SupPid),
ok = exit_child(SupPid),
- timer:sleep(1000),
+ timer:sleep(10),
timeout = ping_child(SupPid),
- timer:sleep(5000),
+ timer:sleep(1010),
ok = ping_child(SupPid),
exit(SupPid, shutdown),
rabbit_misc:unlink_and_capture_exit(SupPid),
@@ -56,7 +56,7 @@ start_link() ->
init([]) ->
{ok, {{one_for_one, 1, 1},
- [{test, {test_sup, start_child, []}, {permanent, 3},
+ [{test, {test_sup, start_child, []}, {permanent, 1},
16#ffffffff, worker, [test_sup]}]}}.
start_child() ->