Commit 5dceb7db authored by Francesc Guasch's avatar Francesc Guasch
Browse files

create both objects with same config and connection

parent 570d6e8f
......@@ -9,9 +9,13 @@ use_ok('Ravada::Front');
my $test = Test::SQL::Data->new(config => 't/etc/ravada.conf');
my $RVD_BACK = Ravada->new( config => 't/etc/ravada.conf' );
my $RVD_FRONT = Ravada::Front->new( connector => $test->connector
, config => 't/etc/ravada.conf'
my @rvd_args = (
config => 't/etc/ravada.conf'
,connector => $test->connector
);
my $RVD_BACK = Ravada->new( @rvd_args);
my $RVD_FRONT = Ravada::Front->new( @rvd_args
, backend => $RVD_BACK
);
......
......@@ -44,5 +44,7 @@ for my $backend ('kvm','lxc') {
ok($req, "Request $name not created");
$RVD->wait_request($req);
ok($req->status eq 'done',"Request for create $backend domain ".$req->status);
}
done_testing();
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