Update changelog
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_script_server.t
index 1717236..01b2dd2 100644 (file)
@@ -4,11 +4,14 @@ use warnings;
 use FindBin qw/$Bin/;
 use lib "$Bin/../lib";
 
+use File::Temp qw/ tempdir /;
 use Test::More;
 use Try::Tiny;
 
 use Catalyst::Script::Server;
 
+chdir(tempdir(CLEANUP => 1));
+
 my $testopts;
 
 # Test default (no opts/args behaviour)
@@ -133,6 +136,10 @@ sub testBackgroundOptionWithFork {
 
     ## First, make sure we can get an app
     my $app = _build_testapp($argstring);
+
+    ## Sorry, don't really fork since this cause trouble in Test::Aggregate
+    $app->meta->add_around_method_modifier('daemon_fork', sub { return; });
+
     try {
         $app->run;
     }