Commit ce1c54ad authored by frankiejol's avatar frankiejol
Browse files

refactor(test): wait a little bit longer for the e

parent 785de8a9
......@@ -901,7 +901,10 @@ sub fast_forward_requests() {
my $sth = $CONNECTOR->dbh->prepare("UPDATE requests "
." SET at_time=0 WHERE status = 'requested' AND at_time>0 "
);
eval {
$sth->execute();
};
die $@ if $@ && $@ !~ /Deadlock found when/;
}
sub init_vm {
......
......@@ -226,8 +226,13 @@ for my $vm_name (@{rvd_front->list_vm_types} ) {
)->status_is(302);
_wait_request(debug => 1, background => 1, check_error => 1);
my $base = rvd_front->search_domain($name);
ok($base, "Expecting domain $name create") or next;
my $base;
for ( 1 .. 10 ) {
$base = rvd_front->search_domain($name);
last if $base;
sleep 1;
}
ok($base, "Expecting domain $name create") or exit;
push @bases,($base->name);
mojo_request($t, "add_hardware", { id_domain => $base->id, name => 'network' });
......
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