diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2010-07-29 07:56:12 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-07-29 07:56:12 +0100 |
| commit | 865565f1907452ffd55adce2cfa7a52bbe5afd9a (patch) | |
| tree | 3a671e7adeef9544e0fa3163f2325826590180e9 | |
| parent | bf33e83919e39a259993c0b06bbfd7e54da2a19e (diff) | |
| download | rabbitmq-server-git-865565f1907452ffd55adce2cfa7a52bbe5afd9a.tar.gz | |
reduce time taken by tests
| -rw-r--r-- | src/test_sup.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test_sup.erl b/src/test_sup.erl index 3e126d0d2f..655370a11c 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() -> |
