[pve-devel] [PATCH qemu-server 02/12] test: mock PVE::ReplicationConfig->new
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed Nov 6 13:36:54 CET 2019
to allow tests to finish without running, functional pmxcfs instance.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
test/snapshot-test.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/snapshot-test.pm b/test/snapshot-test.pm
index c95e7f3..2090d26 100644
--- a/test/snapshot-test.pm
+++ b/test/snapshot-test.pm
@@ -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;
--
2.20.1
More information about the pve-devel
mailing list