summaryrefslogtreecommitdiff
path: root/src/test_sup.erl
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-08-05 10:03:12 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-08-05 10:03:12 +0100
commite495e67ad8f2c474a94795a3f54b0e13b54e5235 (patch)
tree2e15724d608a1d9733ba8d9c3dc2fed3676944b3 /src/test_sup.erl
parent045f3c7c6ba0933f65d36a8d06a9a5ca0c7e93f7 (diff)
parent51c8e02239abcb2f8a9a80db8ed2385e0ce67d10 (diff)
downloadrabbitmq-server-e495e67ad8f2c474a94795a3f54b0e13b54e5235.tar.gz
merge default into bug23056
Diffstat (limited to 'src/test_sup.erl')
-rw-r--r--src/test_sup.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test_sup.erl b/src/test_sup.erl
index 8413e6bf..5feb146f 100644
--- a/src/test_sup.erl
+++ b/src/test_sup.erl
@@ -45,10 +45,10 @@ test_supervisor_delayed_restart() ->
test_supervisor_delayed_restart(SupPid) ->
ok = ping_child(SupPid),
ok = exit_child(SupPid),
- timer:sleep(10),
+ timer:sleep(100),
ok = ping_child(SupPid),
ok = exit_child(SupPid),
- timer:sleep(10),
+ timer:sleep(100),
timeout = ping_child(SupPid),
timer:sleep(1010),
ok = ping_child(SupPid),
@@ -57,8 +57,8 @@ test_supervisor_delayed_restart(SupPid) ->
with_sup(RestartStrategy, Fun) ->
{ok, SupPid} = supervisor2:start_link(?MODULE, [RestartStrategy]),
Res = Fun(SupPid),
+ unlink(SupPid),
exit(SupPid, shutdown),
- rabbit_misc:unlink_and_capture_exit(SupPid),
Res.
init([RestartStrategy]) ->