Skip to content

Commit

Permalink
fixup! Refactor reporting package to use pointers for Secret struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Baruch Odem committed Feb 14, 2024
1 parent 8192019 commit 5c34635
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions secrets/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
})
Expand Down

0 comments on commit 5c34635

Please sign in to comment.