Skip to content

Commit

Permalink
removed redundant WebSocket test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 24, 2013
1 parent 394f4e6 commit 71c3c41
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions t/mojo/websocket.t
Expand Up @@ -286,29 +286,6 @@ is $result, 'test0test1', 'right result';
is $finished, 4, 'finished client websocket';
is $subreq, 1, 'finished server websocket';

# 64bit message (too large)
$status = undef;
my ($echo, $size);
$ua->websocket(
'/echo' => sub {
my ($ua, $tx) = @_;
$tx->on(message => sub { $echo = pop });
$tx->on(
finish => sub {
my ($tx, $code) = @_;
$status = $code;
Mojo::IOLoop->stop;
}
);
$tx->send('x' x 262145);
$size = $tx->max_websocket_size;
}
);
Mojo::IOLoop->start;
is $size, 262144, 'right size';
is $status, 1009, 'right status';
ok !$echo, 'no echo';

# Parallel subrequests
my $delay = Mojo::IOLoop->delay;
$finished = 0;
Expand Down

0 comments on commit 71c3c41

Please sign in to comment.