Skip to content

Commit bdbdfac

Browse files
committed
fix: use assert.Contains per testifylint
Signed-off-by: Rohan Sood <56945243+rohansood10@users.noreply.github.com>
1 parent ab1ce4a commit bdbdfac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/apis/application/v1alpha1/values_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package v1alpha1
22

33
import (
4-
"strings"
54
"testing"
65

76
"github.com/stretchr/testify/assert"
@@ -152,7 +151,7 @@ func TestValues_NullPreservation(t *testing.T) {
152151
require.NoError(t, err)
153152

154153
yamlOutput := string(source.ValuesYAML())
155-
assert.True(t, strings.Contains(yamlOutput, "cpu: null"),
154+
assert.Contains(t, yamlOutput, "cpu: null",
156155
"null values should survive JSON round-trip, got: %s", yamlOutput)
157156
})
158157
}

0 commit comments

Comments
 (0)