Skip to content

Commit

Permalink
Update UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
cx-ruio committed Oct 2, 2024
1 parent 0a1d217 commit 2791bd9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions engine/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package engine

import (
"fmt"
"github.com/stretchr/testify/assert"
"sync"
"testing"

Expand Down Expand Up @@ -159,11 +160,10 @@ func TestSecrets(t *testing.T) {

s := <-secretsChan

if s == nil && secret.ShouldFind {
t.Errorf("secret \"%s\" not found", secret.Name)
}
if s != nil && !secret.ShouldFind {
t.Errorf("should not find")
if secret.ShouldFind {
assert.Equal(t, s.LineContent, secret.Content)
} else {
assert.Nil(t, s)
}
})
}
Expand Down

0 comments on commit 2791bd9

Please sign in to comment.