From 92ff0e37a080ad3746a5fb8d0c63fddc7328c8bc Mon Sep 17 00:00:00 2001 From: sunnavy Date: Tue, 14 Sep 2021 04:19:56 +0800 Subject: [PATCH] Capture the permission warning for inline test mode As we restart server below, the test doesn't fail in other test modes, but does fail in inline mode. --- t/web/admin_tools_editconfig.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/web/admin_tools_editconfig.t b/t/web/admin_tools_editconfig.t index 0b3addbd719..366bf7f596f 100644 --- a/t/web/admin_tools_editconfig.t +++ b/t/web/admin_tools_editconfig.t @@ -13,6 +13,7 @@ $m->follow_link_ok( { text => 'System Configuration' }, 'followed link to "Syste ok( !$m->find_link( text => 'Edit' ), 'no edit link' ); $m->get_ok('/Admin/Tools/EditConfig.html'); $m->content_contains('Permission Denied'); +$m->warning_like( qr/Permission Denied/, 'Permission denied warning' ); RT::Test->stop_server; RT->Config->Set( ShowEditSystemConfig => 1 );