Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
2d46a056
Commit
2d46a056
authored
Oct 16, 2020
by
Francesc Guasch
Browse files
refactor(test): http 101 is ok
parent
157f110b
Changes
1
Hide whitespace changes
Inline
Side-by-side
t/lib/Test/Ravada.pm
View file @
2d46a056
...
...
@@ -593,7 +593,7 @@ sub mojo_clean {
sub
mojo_check_login
( $t, $user=$MOJO_USER , $pass=$MOJO_PASSWORD ) {
$t
->
ua
->
get
("
/user.json
");
return
if
$t
->
tx
->
res
->
code
=~
/^(200|302)$/
;
return
if
$t
->
tx
->
res
->
code
=~
/^(
101|
200|302)$/
;
warn
$t
->
tx
->
res
->
code
();
mojo_login
(
$t
,
$user
,
$pass
);
}
...
...
@@ -852,7 +852,8 @@ sub wait_request {
}
elsif
(
$req
->
command
eq
'
set_time
')
{
like
(
$req
->
error
,
qr(^$|libvirt error code)
);
}
else
{
is
(
$req
->
error
,'')
or
confess
$req
->
command
;
my
$error
=
(
$req
->
error
or
'');
is
(
$error
,'')
or
confess
$req
->
command
;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment