Skip to content

Commit b3ebaa4

Browse files
committed
trying to the OSX test to pass on Travis, it passes locally
Signed-off-by: avaid96 <[email protected]>
1 parent 029e094 commit b3ebaa4

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

osxkeychain/osxkeychain_darwin_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ func TestOSXKeychainHelper(t *testing.T) {
3434
t.Fatalf("expected %s, got %s\n", "foobarbaz", secret)
3535
}
3636

37-
if err := helper.Delete(creds.ServerURL); err != nil {
38-
t.Fatal(err)
39-
}
40-
helper.Add(creds)
41-
defer helper.Delete(creds.ServerURL)
4237
paths, accts, err := helper.List()
4338
if err != nil || len(paths) == 0 || len(accts) == 0 {
4439
t.Fatal(err)
4540
}
41+
42+
if err := helper.Delete(creds.ServerURL); err != nil {
43+
t.Fatal(err)
44+
}
45+
4646
helper.Add(creds1)
4747
defer helper.Delete(creds1.ServerURL)
4848
newpaths, newaccts, err := helper.List()

wincred/wincred_windows.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,11 @@ func (h Wincred) Get(serverURL string) (string, string, error) {
3737
}
3838
return g.UserName, string(g.CredentialBlob), nil
3939
}
40+
41+
func (h Wincred) List() ([]string, []string, error) {
42+
accts, paths, err := winc.List()
43+
if err != nil {
44+
return err
45+
}
46+
return paths, accts, nil
47+
}

0 commit comments

Comments
 (0)