fix lighttpd tests when using local::lib
[catagits/Catalyst-Runtime.git] / t / optional_threads.t
index 9ed878f..b0a05c9 100644 (file)
@@ -1,5 +1,3 @@
-#!perl
-
 use strict;
 use warnings;
 
@@ -28,12 +26,12 @@ else {
         plan skip_all => 'Needs a Perl with ithreads enabled';
     }
 }
+
 no warnings 'redefine';
 sub request {
-    my $thr = threads->new( 
+    my $thr = threads->new(
         sub { Catalyst::Test::local_request('TestApp',@_) },
-        @_ 
+        @_
     );
     $thr->join;
 }
@@ -48,7 +46,7 @@ sub request {
     ];
 
     my $expected = join( ", ", @expected );
-    
+
     ok( my $response = request('http://localhost/action/default'), 'Request' );
     ok( $response->is_success, 'Response Successful 2xx' );
     is( $response->header('X-Catalyst-Executed'), $expected, 'Executed actions' );