mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
fix: use assert.Contains per testifylint
Signed-off-by: Rohan Sood <56945243+rohansood10@users.noreply.github.com>
This commit is contained in:
parent
ab1ce4ad78
commit
bdbdfac396
1 changed files with 1 additions and 2 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
|
@ -152,7 +151,7 @@ func TestValues_NullPreservation(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
|
||||
yamlOutput := string(source.ValuesYAML())
|
||||
assert.True(t, strings.Contains(yamlOutput, "cpu: null"),
|
||||
assert.Contains(t, yamlOutput, "cpu: null",
|
||||
"null values should survive JSON round-trip, got: %s", yamlOutput)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue