Commit 54f8d06b authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(test); improved when dead connections

parent 7711fa5f
......@@ -659,6 +659,7 @@ $MOJO_USER = $user;
}
sub mojo_create_domain($t, $vm_name) {
mojo_check_login($t);
my $name = new_domain_name()."-".$vm_name;
$t->post_ok('/new_machine.html' => form => {
backend => $vm_name
......
......@@ -87,6 +87,7 @@ sub test_bases($t, $bases) {
for my $base ( @$bases ) {
$t->get_ok("/machine/prepare/".$base->id.".json")->status_is(200);
wait_request(debug => 0, background => 1);
mojo_check_login($t);
$n_bases++;
my @machines_user = list_machines_user($t);
is(@machines_user, $n_bases, Dumper(\@machines_user)) or exit;
......@@ -180,6 +181,7 @@ if (!rvd_front->ping_backend()) {
done_testing();
exit;
}
remove_old_domains_req(0);
mojo_clean();
$USERNAME = user_admin->name;
......
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