mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-04-28 18:58:27 +00:00
test: avoid duplicate mock module in restore config test
The duplication is there, because two independet fixes for a test failure where applied, namely commits:75c430ce
("test: unbreak restore_config_test")cc1cdadb
("test: fix restore config test as unprivileged user") Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Link: https://lore.proxmox.com/20250127112923.31703-3-f.ebner@proxmox.com
This commit is contained in:
parent
3948f8d265
commit
27f38b00f3
@ -7,7 +7,6 @@ use lib qw(..);
|
||||
|
||||
use Test::MockModule;
|
||||
use Test::More;
|
||||
use Test::MockModule;
|
||||
|
||||
use File::Basename;
|
||||
|
||||
@ -17,18 +16,11 @@ use PVE::Tools qw(dir_glob_foreach file_get_contents);
|
||||
my $INPUT_DIR = './restore-config-input';
|
||||
my $EXPECTED_DIR = './restore-config-expected';
|
||||
|
||||
my $pve_cluster_module = Test::MockModule->new('PVE::Cluster');
|
||||
$pve_cluster_module->mock(
|
||||
cfs_read_file => sub {
|
||||
return {};
|
||||
},
|
||||
);
|
||||
|
||||
# NOTE update when you add/remove tests
|
||||
plan tests => 4;
|
||||
|
||||
my $cfs_mock = Test::MockModule->new("PVE::Cluster");
|
||||
$cfs_mock->mock(
|
||||
my $pve_cluster_module = Test::MockModule->new("PVE::Cluster");
|
||||
$pve_cluster_module->mock(
|
||||
cfs_read_file => sub {
|
||||
my ($file) = @_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user