Remove testsuite's assumptions about where it's mounted on a web server
[catagits/Catalyst-Runtime.git] / t / aggregate / live_component_controller_action_regexp.t
index 36a679e..fd65665 100644 (file)
@@ -131,11 +131,9 @@ sub run_tests {
             'TestApp::Controller::Action::Regexp',
             'Test Class'
         );
-        my $location = $response->header('location');
-        $location =~ s/localhost(:\d+)?/localhost/;
         is(
-            $location,
-            $url,
+            $response->header('location'),
+            $response->request->uri,
             'Redirect URI is the same as the request URI'
         );
     }