Skip to content

Commit

Permalink
allow the use of specific port
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jul 28, 2011
1 parent 0c4ff2b commit 222364d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion bin/app.pl
@@ -1,8 +1,11 @@
#!/usr/bin/env perl
use Dancer;
if ($ENV{DWIMMER_TEST}) {
set log => 'warning';
set log => 'warning';
set startup_info => 0;
}
if ($ENV{DWIMMER_PORT}) {
set port => $ENV{DWIMMER_PORT};
}
use Dwimmer;
dance;
7 changes: 3 additions & 4 deletions t/004_win.t
Expand Up @@ -4,15 +4,14 @@ use warnings;
use t::lib::Dwimmer::Test;

$ENV{DWIMMER_TEST} = 1;
start();
$ENV{DWIMMER_PORT} = 3001;

# TODO set my own port?
# TODO eliminate the logging to the console?
start();

eval "use Test::More";
require Test::WWW::Mechanize;

my $url = "http://localhost:3000/";
my $url = "http://localhost:$ENV{DWIMMER_PORT}/";

plan(tests => 1);

Expand Down

0 comments on commit 222364d

Please sign in to comment.