Skip to content

Commit

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

Expand Down

0 comments on commit bc4ac25

Please sign in to comment.