summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2012-09-03 17:51:22 +0100
committerTim Watson <tim@rabbitmq.com>2012-09-03 17:51:22 +0100
commitfe02b54dc8b4c49f0a9164ef0677dced4a9c5a11 (patch)
tree0fc6b90514ed6fd6e7e0b0bf5ecaf04e5cfe3383
parent9811df4e14fff714e813e76a2801a62418f40204 (diff)
downloadrabbitmq-server-fe02b54dc8b4c49f0a9164ef0677dced4a9c5a11.tar.gz
cosmetic (again)
-rw-r--r--src/supervisor2_tests.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/supervisor2_tests.erl b/src/supervisor2_tests.erl
index 4a14dd2d..ce5857a3 100644
--- a/src/supervisor2_tests.erl
+++ b/src/supervisor2_tests.erl
@@ -59,8 +59,8 @@ start_child() ->
init([parent]) ->
{ok, {{one_for_one, 0, 1},
- [{test_sup, {?MODULE, start_sup, []},
- transient, 5000, supervisor, [?MODULE]}]}};
+ [{test_sup, {?MODULE, start_sup, []},
+ transient, 5000, supervisor, [?MODULE]}]}};
init([]) ->
{ok, {{simple_one_for_one_terminate, 0, 1},
[{test_worker, {?MODULE, start_link, []},
@@ -72,7 +72,7 @@ init([]) ->
ensure_children_are_alive({_, ChildPids}) ->
?assertEqual(true,
- lists:all(fun erlang:is_process_alive/1, ChildPids)).
+ lists:all(fun erlang:is_process_alive/1, ChildPids)).
shutdown_and_verify_all_children_died({Parent, ChildPids}=State) ->
ensure_children_are_alive(State),
@@ -80,7 +80,7 @@ shutdown_and_verify_all_children_died({Parent, ChildPids}=State) ->
?assertEqual(true, erlang:is_process_alive(TestSup)),
?assertMatch(ok, supervisor2:terminate_child(Parent, test_sup)),
?assertMatch([], [P || P <- ChildPids,
- erlang:is_process_alive(P)]),
+ erlang:is_process_alive(P)]),
?assertEqual(false, erlang:is_process_alive(TestSup)).
shutdown_whilst_interleaving_exits_occur({Parent, ChildPids}=State) ->
@@ -88,11 +88,11 @@ shutdown_whilst_interleaving_exits_occur({Parent, ChildPids}=State) ->
TestPid = self(),
Ref = erlang:make_ref(),
spawn(fun() ->
- TestPid ! {Ref, supervisor2:terminate_child(Parent, test_sup)}
- end),
+ TestPid ! {Ref, supervisor2:terminate_child(Parent, test_sup)}
+ end),
[P ! stop || P <- ChildPids],
receive {Ref, Res} ->
- ?assertEqual(ok, Res)
+ ?assertEqual(ok, Res)
end.
init_supervisor() ->