Skip to content

Commit

Permalink
more consistent WebSocket tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 9, 2014
1 parent d04d2de commit d894d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Test/Mojo.pm
Expand Up @@ -298,7 +298,7 @@ sub websocket_ok {
Mojo::IOLoop->start;

my $desc = encode 'UTF-8', "WebSocket $url";
return $self->_test('ok', $self->tx->res->code eq 101, $desc);
return $self->_test('ok', $self->tx->is_websocket, $desc);
}

sub _json {
Expand Down

0 comments on commit d894d39

Please sign in to comment.