diff --git a/server/secret_test.go b/server/secret_test.go index 8f28b50..ab00814 100644 --- a/server/secret_test.go +++ b/server/secret_test.go @@ -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) } } @@ -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) } }