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") t.Log("Looking for a mmcblk0, sda, vda or nvme device")
for _, device := range devices { 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) t.Log("Found target device", device.ID)
foundDevice = true foundDevice = true
} }
+1
View File
@@ -142,6 +142,7 @@ func UpdateSystemLoggerServices(services []string) {
} }
// StartWs: Starts the webserver service for Edgeapps // StartWs: Starts the webserver service for Edgeapps
// StartWs : Starts the WS environment (renders and brings up all modules)
func StartWs() { func StartWs() {
wsPath := utils.GetPath(utils.WsPath) wsPath := utils.GetPath(utils.WsPath)
fmt.Println("Starting WS") fmt.Println("Starting WS")