Set keyring item to always accessible for testing
This commit is contained in:
		@@ -12,7 +12,12 @@ const (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func TestKeyring(t *testing.T) {
 | 
			
		||||
	item := keychain.NewGenericPassword(testKeyringService, testKeyringKey, "", []byte(testKeyringKey), "")
 | 
			
		||||
	item := keychain.NewItem()
 | 
			
		||||
	item.SetSecClass(keychain.SecClassGenericPassword)
 | 
			
		||||
	item.SetService(testKeyringService)
 | 
			
		||||
	item.SetAccount(testKeyringKey)
 | 
			
		||||
	item.SetData([]byte(testKeyringKey))
 | 
			
		||||
	item.SetAccessible(keychain.AccessibleAlways)
 | 
			
		||||
	if err := keychain.AddItem(item); err != nil {
 | 
			
		||||
		t.Skip(err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user