File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,9 @@ import (
77)
88
99func TestKeyringTokenStore_RoundTrip (t * testing.T ) {
10- // Use in-memory fallback for CI environments without a keyring.
11- // The KeyringTokenStore constructor already falls back to InMemoryTokenStore,
12- // so this test validates the interface contract regardless of backend.
13- store := NewKeyringTokenStore ()
10+ // Use in-memory store to avoid triggering macOS keychain permission dialogs
11+ // or failing in CI environments without a keyring.
12+ store := NewInMemoryTokenStore ()
1413
1514 resourceURL := "https://example.com/mcp"
1615
@@ -82,7 +81,7 @@ func TestKeyringTokenStore_JSONRoundTrip(t *testing.T) {
8281}
8382
8483func TestKeyringTokenStore_RemoveNonExistent (t * testing.T ) {
85- store := NewKeyringTokenStore ()
84+ store := NewInMemoryTokenStore ()
8685 // Should not error when removing a non-existent token
8786 if err := store .RemoveToken ("https://nonexistent.example.com" ); err != nil {
8887 t .Fatalf ("RemoveToken for non-existent key should not error: %v" , err )
You can’t perform that action at this time.
0 commit comments