diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2011-08-09 13:15:53 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2011-08-09 13:15:53 +0100 |
| commit | c9f225ff25082a651706292d906d77f9f40026d6 (patch) | |
| tree | 26268435906deacde0a1d42da038ae367810b3bc | |
| parent | 2a7d16833d40ef6b007fc4d9048b7a9ff46908e0 (diff) | |
| download | rabbitmq-server-git-c9f225ff25082a651706292d906d77f9f40026d6.tar.gz | |
Slight test for ignore too.
| -rw-r--r-- | src/mirrored_supervisor_tests.erl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mirrored_supervisor_tests.erl b/src/mirrored_supervisor_tests.erl index e5a4747db4..fe06bee1c6 100644 --- a/src/mirrored_supervisor_tests.erl +++ b/src/mirrored_supervisor_tests.erl @@ -41,6 +41,7 @@ all_tests() -> passed = test_no_migration_on_shutdown(), passed = test_start_idempotence(), passed = test_unsupported(), + passed = test_ignore(), passed. %% Simplest test @@ -160,6 +161,12 @@ test_unsupported() -> end, passed. +%% Just test we don't blow up +test_ignore() -> + ?MS:start_link({local, foo}, get_group(group), ?MODULE, + {sup, fake_strategy_for_ignore, []}), + passed. + %% --------------------------------------------------------------------------- with_sups(Fun, Sups) -> @@ -240,6 +247,9 @@ kill_wait(Pid) -> %% Dumb gen_server we can supervise %% --------------------------------------------------------------------------- +init({sup, fake_strategy_for_ignore, _ChildSpecs}) -> + ignore; + init({sup, Strategy, ChildSpecs}) -> {ok, {{Strategy, 0, 1}, ChildSpecs}}; |
