Skip to content

Commit

Permalink
Added check for IsActive flag
Browse files Browse the repository at this point in the history
  • Loading branch information
delinea-sagar committed Apr 3, 2024
1 parent 6d5715c commit fd3e157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func TestSecretCRUD(t *testing.T) {

// Test read of the deleted secret fails
s, err := tss.Secret(sc.ID)
if s != nil {
if s != nil && s.Active {
t.Errorf("deleted secret with id '%d' returned from read", sc.ID)
}
}
Expand Down Expand Up @@ -559,7 +559,7 @@ func TestSecretCRUDForSSHTemplate(t *testing.T) {

// Test read of the deleted secret fails
s, err := tss.Secret(sc.ID)
if s != nil {
if s != nil && s.Active {
t.Errorf("deleted secret with id '%d' returned from read", sc.ID)
}
}
Expand Down

0 comments on commit fd3e157

Please sign in to comment.