fix DeviceIdentifier type in test

This commit is contained in:
Paulo Truta
2026-11-26 13:39:29 +01:00
parent 3717c6e90b
commit b39524ab8a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func assertGetDevices(devices []Device, t *testing.T) {
t.Log("Looking for a mmcblk0, sda, vda or nvme device")
for _, device := range devices {
if device.ID == "mmcblk0" || device.ID == "sda" || device.ID == "vda" || strings.HasPrefix(device.ID, "nvme") {
if device.ID == "mmcblk0" || device.ID == "sda" || device.ID == "vda" || strings.HasPrefix(string(device.ID), "nvme") {
t.Log("Found target device", device.ID)
foundDevice = true
}