Commit 2d46a056 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(test): http 101 is ok

parent 157f110b
......@@ -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;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment