diff --git a/secrets/engine_test.go b/secrets/engine_test.go index 31ba5fdc..3df10a8c 100644 --- a/secrets/engine_test.go +++ b/secrets/engine_test.go @@ -130,10 +130,11 @@ func TestSecrets(t *testing.T) { close(secretsChan) s := <-secretsChan - if s.Value == "" && secret.ShouldFind { + + if s == nil && secret.ShouldFind { t.Errorf("secret \"%s\" not found", secret.Name) } - if s.Value != "" && !secret.ShouldFind { + if s != nil && !secret.ShouldFind { t.Errorf("should not find") } })