mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2024-12-22 13:34:06 +03:00
test: migrate: correctly mock storage module
by fixing a typo. Since cfs_read_file within the storage module was not mocked, the tests could fail on some setups. Now that get_bandwidth_limit is mocked, cfs_read_file is not called anymore, but still mock it too for good measure and to make it more future-proof. Reported-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
e6ec384fa7
commit
8b70288e7d
@ -140,9 +140,10 @@ $storage_module->mock(
|
||||
config => sub {
|
||||
return $storage_config;
|
||||
},
|
||||
get_bandwitdth_limit => sub {
|
||||
get_bandwidth_limit => sub {
|
||||
return 123456;
|
||||
},
|
||||
cfs_read_file => $mocked_cfs_read_file,
|
||||
);
|
||||
|
||||
our $storage_plugin_module = Test::MockModule->new("PVE::Storage::Plugin");
|
||||
|
Loading…
Reference in New Issue
Block a user