Add 'lazy' to two parameters to let the constructor runs first and set the applicatio...
authorLaufeyjarson <lerickson@rdwarf.net>
Thu, 26 Jun 2014 06:09:18 +0000 (23:09 -0700)
committerJohn Napiorkowski <jjnapiork@cpan.org>
Mon, 14 Jul 2014 12:18:00 +0000 (08:18 -0400)
commit7beb191e8464dabcb00f65c8e4867c5c3f7198d5
tree378abdc9608a7c7f4f513c3a92b2e014e6a94687
parentefeeb25772af5f67012ed1fdbef9a9d4e01ad64c
Add 'lazy' to two parameters to let the constructor runs first and set the application name properly before they are used. Without this, the command line options are sometimes ignored.

One test had to change, as it assumed the port number would have been set,
when the method was never called.  Calling the method to get the port number
fixes this, by allowing the lazy method to actually be run before the value
is used.
lib/Catalyst/Script/Server.pm
t/aggregate/unit_core_script_server.t