mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-11-26 14:48:31 +01:00
fix DeviceIdentifier type in test
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user