Skip to content

Commit 280de0c

Browse files
author
Simon MacMullen
committed
Fix tests, the exceptions are a bit cleaner now (bug26610)
1 parent 23f3e71 commit 280de0c

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

test/src/rabbit_tests.erl

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,8 @@ test_log_management_during_startup() ->
786786
ok = case catch control_action(start_app, []) of
787787
ok -> exit({got_success_but_expected_failure,
788788
log_rotation_tty_no_handlers_test});
789-
{badrpc, {'EXIT', {rabbit,failure_during_boot,
790-
{error,{cannot_log_to_tty,
791-
_, not_installed}}}}} -> ok
789+
{badrpc, {'EXIT', {error,
790+
{cannot_log_to_tty, _, not_installed}}}} -> ok
792791
end,
793792

794793
%% fix sasl logging
@@ -815,8 +814,7 @@ test_log_management_during_startup() ->
815814
ok -> exit({got_success_but_expected_failure,
816815
log_rotation_no_write_permission_dir_test});
817816
{badrpc, {'EXIT',
818-
{rabbit, failure_during_boot,
819-
{error, {cannot_log_to_file, _, _}}}}} -> ok
817+
{error, {cannot_log_to_file, _, _}}}} -> ok
820818
end,
821819

822820
%% start application with logging to a subdirectory which
@@ -829,10 +827,10 @@ test_log_management_during_startup() ->
829827
ok -> exit({got_success_but_expected_failure,
830828
log_rotatation_parent_dirs_test});
831829
{badrpc,
832-
{'EXIT', {rabbit,failure_during_boot,
833-
{error, {cannot_log_to_file, _,
834-
{error,
835-
{cannot_create_parent_dirs, _, eacces}}}}}}} -> ok
830+
{'EXIT',
831+
{error, {cannot_log_to_file, _,
832+
{error,
833+
{cannot_create_parent_dirs, _, eacces}}}}}} -> ok
836834
end,
837835
ok = set_permissions(TmpDir, 8#00700),
838836
ok = set_permissions(TmpLog, 8#00600),

0 commit comments

Comments
 (0)