From 9ea8ba57e5f66c53d591914cb9dcf171ebf1a79b Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 29 Jul 2010 07:56:12 +0100 Subject: reduce time taken by tests --- src/test_sup.erl | 8 ++++---- 1 file 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() -> -- cgit v1.2.1