test: mock PVE::Cluster::cfs_update

Because the replication's purge_old_state() function now
fails if cfs_update() fails, and since it tries to access
the actual local pmxcfs it should never have been called by
tests anyway.
This commit is contained in:
Wolfgang Bumiller 2017-10-18 15:30:59 +02:00
parent 1c289bc89e
commit b03b47491f

View File

@ -231,7 +231,8 @@ sub setup {
get_ssh_info => $mocked_get_ssh_info,
ssh_info_to_command => $mocked_ssh_info_to_command,
get_vmlist => sub { return $mocked_vmlist->(); },
get_members => $mocked_get_members);
get_members => $mocked_get_members,
cfs_update => sub {});
$pve_inotify_module->mock('nodename' => sub { return $mocked_nodename; });
};