Make restarters immutable handling less naive + tests
[catagits/Catalyst-Runtime.git] / t / optional_http-server-restart.t
index c3bff4f..39f475a 100644 (file)
@@ -13,6 +13,7 @@ use FindBin;
 use LWP::Simple;
 use IO::Socket;
 use IPC::Open3;
+use Catalyst::Engine::HTTP::Restarter::Watcher;
 use Time::HiRes qw/sleep/;
 eval "use Catalyst::Devel 1.0;";
 
@@ -68,6 +69,9 @@ my @files = (
     "$FindBin::Bin/../t/tmp/TestApp/lib/TestApp/Controller/Immutable.pm",
 );
 
+push(@files, "$FindBin::Bin/../t/tmp/TestApp/lib/TestApp/Controller/Immutable/HardToReload.pm")
+    if Catalyst::Engine::HTTP::Restarter::Watcher::DETECT_PACKAGE_COMPILATION();
+
 # change some files and make sure the server restarts itself
 NON_ERROR_RESTART:
 for ( 1 .. 20 ) {