Unified Agent + reusable Go agent core.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: relax desktop backend path assertions

Lyric e0c0d96e c6935540

+4 -4
+4 -4
desktop/wails/backend_binary_test.go
··· 49 49 if len(candidates) == 0 { 50 50 t.Fatalf("expected non-empty candidates") 51 51 } 52 - if candidates[0] != filepath.Clean(explicit) { 53 - t.Fatalf("first candidate = %q, want %q", candidates[0], filepath.Clean(explicit)) 52 + if got, want := candidates[0], filepath.Clean(explicit); !sameCleanPath(got, want) { 53 + t.Fatalf("first candidate = %q, want path-equivalent to %q", got, want) 54 54 } 55 55 } 56 56 ··· 60 60 candidates := resolveDesktopBackendCandidates("", "") 61 61 found := false 62 62 for _, c := range candidates { 63 - if c == filepath.Clean(envPath) { 63 + if sameCleanPath(c, envPath) { 64 64 found = true 65 65 break 66 66 } 67 67 } 68 68 if !found { 69 - t.Fatalf("expected env candidate %q in list: %#v", envPath, candidates) 69 + t.Fatalf("expected env candidate path-equivalent to %q in list: %#v", envPath, candidates) 70 70 } 71 71 } 72 72