diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2015-02-26 17:30:52 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2015-02-26 17:30:52 +0000 |
| commit | 280de0c58d388b1eb21a153f8dc8e94aa0a2c3f6 (patch) | |
| tree | d820ccfcbc2877c01a0ed6725d7e1e0f250fe789 /test | |
| parent | 23f3e71463a47a6783bc9421f34c596e713e65b4 (diff) | |
| download | rabbitmq-server-git-280de0c58d388b1eb21a153f8dc8e94aa0a2c3f6.tar.gz | |
Fix tests, the exceptions are a bit cleaner now (bug26610)
Diffstat (limited to 'test')
| -rw-r--r-- | test/src/rabbit_tests.erl | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/src/rabbit_tests.erl b/test/src/rabbit_tests.erl index ef6b756b14..f54a486058 100644 --- a/test/src/rabbit_tests.erl +++ b/test/src/rabbit_tests.erl @@ -786,9 +786,8 @@ test_log_management_during_startup() -> ok = case catch control_action(start_app, []) of ok -> exit({got_success_but_expected_failure, log_rotation_tty_no_handlers_test}); - {badrpc, {'EXIT', {rabbit,failure_during_boot, - {error,{cannot_log_to_tty, - _, not_installed}}}}} -> ok + {badrpc, {'EXIT', {error, + {cannot_log_to_tty, _, not_installed}}}} -> ok end, %% fix sasl logging @@ -815,8 +814,7 @@ test_log_management_during_startup() -> ok -> exit({got_success_but_expected_failure, log_rotation_no_write_permission_dir_test}); {badrpc, {'EXIT', - {rabbit, failure_during_boot, - {error, {cannot_log_to_file, _, _}}}}} -> ok + {error, {cannot_log_to_file, _, _}}}} -> ok end, %% start application with logging to a subdirectory which @@ -829,10 +827,10 @@ test_log_management_during_startup() -> ok -> exit({got_success_but_expected_failure, log_rotatation_parent_dirs_test}); {badrpc, - {'EXIT', {rabbit,failure_during_boot, - {error, {cannot_log_to_file, _, - {error, - {cannot_create_parent_dirs, _, eacces}}}}}}} -> ok + {'EXIT', + {error, {cannot_log_to_file, _, + {error, + {cannot_create_parent_dirs, _, eacces}}}}}} -> ok end, ok = set_permissions(TmpDir, 8#00700), ok = set_permissions(TmpLog, 8#00600), |
