Skip to content

Commit 218c53c

Browse files
fix: skip keychain test on non-macOS platforms
The wrapKeychainError test was failing on Linux CI because IsKeychainLockedError always returns false on non-Darwin platforms. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 35bf7b9 commit 218c53c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/secrets/store_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ var (
107107
)
108108

109109
func TestWrapKeychainError(t *testing.T) {
110+
if !IsKeychainLockedError("User Interaction is not allowed. (-25308)") {
111+
t.Skip("wrapKeychainError only wraps errors on macOS")
112+
}
113+
110114
tests := []struct {
111115
name string
112116
err error

0 commit comments

Comments
 (0)