X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=test%2Fsnapshot-test.pm;h=0b073798ae1e1e90c7cf2ac6a12baafcc05a4010;hb=d1c1af4b020e28992d8b09ee6bcb619f4d0072ac;hp=f79db6b473887fa590685a780a48fd5843a003d9;hpb=d0abc7746acc953fcf7ff2d21509e80bc77fa59d;p=qemu-server.git diff --git a/test/snapshot-test.pm b/test/snapshot-test.pm index f79db6b..0b07379 100644 --- a/test/snapshot-test.pm +++ b/test/snapshot-test.pm @@ -399,10 +399,10 @@ $qemu_config_module->mock('assert_config_exists_on_node', \&assert_config_exists # 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 }); +$repl_config_module->mock('check_for_existing_jobs' => sub { return }); my $storage_module = new Test::MockModule('PVE::Storage'); -$storage_module->mock('config', sub { return undef; }); +$storage_module->mock('config', sub { return; }); $storage_module->mock('path', sub { return "/some/store/statefile/path"; }); $storage_module->mock('activate_volumes', \&mocked_activate_volumes); $storage_module->mock('deactivate_volumes', \&mocked_deactivate_volumes);