From 9bfca2ca135a757e179b61d011a9cd888ace05e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 6 Nov 2019 13:36:54 +0100 Subject: [PATCH] test: mock PVE::ReplicationConfig->new MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to allow tests to finish without running, functional pmxcfs instance. Signed-off-by: Fabian Grünbichler --- test/snapshot-test.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/test/snapshot-test.pm b/test/snapshot-test.pm index c95e7f37..2090d260 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;