mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-03 06:08:31 +00:00
test: mock PVE::ReplicationConfig->new
to allow tests to finish without running, functional pmxcfs instance. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
425441e6fa
commit
9bfca2ca13
@ -379,6 +379,7 @@ $qemu_config_module->mock('__snapshot_save_vmstate', \&__snapshot_save_vmstate);
|
||||
|
||||
# ignore existing replication config
|
||||
my $repl_config_module = new Test::MockModule('PVE::ReplicationConfig');
|
||||
$repl_config_module->mock('new' => sub { return bless {}, "PVE::ReplicationConfig" });
|
||||
$repl_config_module->mock('check_for_existing_jobs' => sub { return undef });
|
||||
|
||||
$running = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user