Skip to content

Commit

Permalink
removed some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 13, 2014
1 parent 8697869 commit 075a97d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.61 2014-11-12
5.61 2014-11-13

5.60 2014-11-11
- Added to_array method to Mojo::Collection.
Expand Down
10 changes: 3 additions & 7 deletions t/mojo/daemon.t
Expand Up @@ -207,16 +207,12 @@ my %params;
for my $i (1 .. 10) { $params{"test$i"} = $i }
my $result = '';
for my $key (sort keys %params) { $result .= $params{$key} }
my ($code, $body);
my $port = $ua->server->url->port;
$tx = $ua->post("http://127.0.0.1:$port/chunked" => form => \%params);
$tx = $ua->post('/chunked' => form => \%params);
is $tx->res->code, 200, 'right status';
is $tx->res->body, $result, 'right content';

# Upload
($code, $body) = ();
$tx = $ua->post(
"http://127.0.0.1:$port/upload" => form => {file => {content => $result}});
$tx = $ua->post('/upload' => form => {file => {content => $result}});
is $tx->res->code, 200, 'right status';
is $tx->res->body, $result, 'right content';
ok $tx->local_address, 'has local address';
Expand All @@ -233,7 +229,7 @@ ok $remote_port > 0, 'has remote port';
my $daemon
= Mojo::Server::Daemon->new(listen => ['http://127.0.0.1'], silent => 1);
$daemon->start;
$port = Mojo::IOLoop->acceptor($daemon->acceptors->[0])->handle->sockport;
my $port = Mojo::IOLoop->acceptor($daemon->acceptors->[0])->handle->sockport;
is $daemon->app->moniker, 'HelloWorld', 'right moniker';
my $buffer = '';
my $id;
Expand Down

0 comments on commit 075a97d

Please sign in to comment.