Skip to content

Commit 8f29055

Browse files
fix(test_FileSR): specify mock VHD_BLOCK_SIZE
Signed-off-by: Mathieu Labourier <mathieu.labourier@vates.tech>
1 parent d8525ca commit 8f29055

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/test_FileSR.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ def test_create_vdi_vhd(self, mock_vhdutil):
327327
vdi = FakeFileVDI(sr, vdi_uuid)
328328
vdi.vdi_type = vhdutil.VDI_TYPE_VHD
329329
mock_vhdutil.validate_and_round_vhd_size.side_effect = vhdutil.validate_and_round_vhd_size
330+
mock_vhdutil.VHD_BLOCK_SIZE = 2 * 1024 * 1024
330331

331332
# Act
332333
vdi.create(sr_uuid, vdi_uuid, 20 * 1024 * 1024)

0 commit comments

Comments
 (0)