From b03b47491fb299ccd672a2f9748b7f30bff630d3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 18 Oct 2017 15:30:59 +0200 Subject: [PATCH] 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. --- bin/test/ReplicationTestEnv.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/test/ReplicationTestEnv.pm b/bin/test/ReplicationTestEnv.pm index ab27f668..9833b622 100755 --- a/bin/test/ReplicationTestEnv.pm +++ b/bin/test/ReplicationTestEnv.pm @@ -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; }); };