diff --git a/controller/internal/backup/restore_points_test.go b/controller/internal/backup/restore_points_test.go index f6e9ff0..9ca2300 100644 --- a/controller/internal/backup/restore_points_test.go +++ b/controller/internal/backup/restore_points_test.go @@ -98,7 +98,7 @@ func TestListRestorePoints_DriveLabel(t *testing.T) { } }) - t.Run("SSD fallback → empty label", func(t *testing.T) { + t.Run("SSD fallback → clear system-drive label (F6)", func(t *testing.T) { sys := filepath.Join(t.TempDir(), "sysdata") nsRoot := NamespaceRoot(sys, false) // system path appends felhom-data mustWrite(t, RecoveryUnitManifestPath(nsRoot, "app"), "{}") @@ -112,8 +112,9 @@ func TestListRestorePoints_DriveLabel(t *testing.T) { if !found || len(points) != 1 { t.Fatalf("points: %v found=%v", points, found) } - if points[0].DriveLabel != "" { - t.Errorf("SSD fallback drive_label = %q, want empty", points[0].DriveLabel) + // F6: a sys_drive app's restore point carries a clear label, never blank. + if points[0].DriveLabel != systemDriveLabel { + t.Errorf("SSD fallback drive_label = %q, want %q", points[0].DriveLabel, systemDriveLabel) } }) }