Skip to content

Commit

Permalink
wip(test): show error when failed login
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Sep 29, 2021
1 parent 61fa8ee commit 79bac5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/lib/Test/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ sub mojo_login( $t, $user, $pass ) {
$t->ua->get($URL_LOGOUT);

$t->post_ok('/login' => form => {login => $user, password => $pass});
like($t->tx->res->code(),qr/^(200|302)$/);
like($t->tx->res->code(),qr/^(200|302)$/) or die $t->tx->res->body;
# ->status_is(302);
$MOJO_USER = $user;
$MOJO_PASSWORD = $pass;
Expand Down

0 comments on commit 79bac5f

Please sign in to comment.