Skip to content

Commit

Permalink
better description for finished_ok test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 25, 2013
1 parent 464562e commit 9a0f9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Test/Mojo.pm
Expand Up @@ -112,7 +112,7 @@ sub finished_ok {
my ($self, $code) = @_;
Mojo::IOLoop->one_tick while !$self->{finished};
my $ok = grep { $self->{finished}[0] == $_ } $code, 1006;
return $self->_test('ok', $ok, 'finished WebSocket');
return $self->_test('ok', $ok, "finished WebSocket with status $code");
}

sub get_ok { shift->_request_ok(get => @_) }
Expand Down

0 comments on commit 9a0f9db

Please sign in to comment.