Skip to content

Commit

Permalink
Fixed wincred_test.go: Replaced wrong assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljoos committed Aug 9, 2016
1 parent fd3b27f commit cbe0c00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wincred_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func TestGenericCredential_EndToEnd(t *testing.T) {
// 3. Search it in the list
creds, err := List()
assert.Nil(t, err)
assert.NotNil(t, creds)
assert.NotEqual(t, 0, len(creds))
found := false
for i := range creds {
Expand All @@ -42,7 +43,7 @@ func TestGenericCredential_EndToEnd(t *testing.T) {
// 5. Search it again in the list. It should be gone.
creds, err = List()
assert.Nil(t, err)
assert.NotEqual(t, 0, len(creds))
assert.NotNil(t, creds)
found = false
for i := range creds {
found = found || creds[i].TargetName == testTargetName
Expand Down

0 comments on commit cbe0c00

Please sign in to comment.