fix(ios): propagate error from BootedUDID instead of silently swallowing

This commit is contained in:
pj committed 2026-04-23 16:49:25 +07:00
1 parent 55ad503856
commit 071fe3e521
3 files changed
+17 -7

No files matched your search

+4 -1
View File
@@ -82,7 +82,10 @@ func TestPickSimulator_EmptyList(t *testing.T) {
func TestBootedUDID_CanceledContext(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
cancel()
udid := BootedUDID(ctx)
udid, err := BootedUDID(ctx)
if err == nil {
t.Error("expected error for canceled context, got nil")
}
if udid != "" {
t.Errorf("expected empty UDID on canceled context, got %q", udid)
}