Skip to content

Commit 2bc0d04

Browse files
committed
fix(test_blktap2.py): replace phy VDI with raw VDI
Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
1 parent b70adf4 commit 2bc0d04

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_blktap2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import xs_errors
1616
import XenAPI
1717

18+
from vditype import VdiType
1819

1920
class BogusException(Exception):
2021
pass
@@ -137,7 +138,7 @@ def setUp(self) -> None:
137138
autospec='blktap2.VDI.TargetDriver')
138139
mock_target.return_value = self.mock_target
139140

140-
self.mock_target.get_vdi_type.return_value = 'phy'
141+
self.mock_target.get_vdi_type.return_value = VdiType.RAW
141142

142143
def mock_handles(type_str):
143144
return type_str == 'udev'

0 commit comments

Comments
 (0)