Subject: | Why restrict server to localhost? |
Sorry, forgot the subject line in my last post.
Here's another suggestion:
The server is currently started with
$app->run($port, 'localhost');
But why restrict it to localhost only? By dropping the host argument,
$app->run($port);
the server will bind to all interfaces. This will allow for testing with
remote Selenium servers.
Subject: | test-www-selenium-catalyst2.patch |
diff --git a/lib/Test/WWW/Selenium/Catalyst.pm b/lib/Test/WWW/Selenium/Catalyst.pm
index 6da63e4..17f6742 100644
--- a/lib/Test/WWW/Selenium/Catalyst.pm
+++ b/lib/Test/WWW/Selenium/Catalyst.pm
@@ -217,7 +217,7 @@ sub start {
exit 0;
};
diag("Catalyst server running in $$") if $DEBUG;
- $app->run($port, 'localhost');
+ $app->run($port);
exit 1;
}
$uri = 'http://localhost:' . $port;