Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
  • Loading branch information
drivebyer committed Sep 15, 2024
1 parent 5ba48df commit ebcb72b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pkg/controllers/rediscluster/rediscluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var _ = Describe("Redis cluster test", func() {
redisClusterCRName string
)
BeforeEach(func() {
redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31())
redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31()) //nolint:gosec
redisClusterCR = factories.New(redisClusterCRName)
Expect(k8sClient.Create(context.TODO(), redisClusterCR)).Should(Succeed())
})
Expand Down Expand Up @@ -74,7 +74,7 @@ var _ = Describe("Redis cluster test", func() {
redisClusterCRName string
)
BeforeEach(func() {
redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31())
redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31()) //nolint:gosec
redisClusterCR = factories.New(redisClusterCRName, factories.DisablePersistence())
Expect(k8sClient.Create(context.TODO(), redisClusterCR)).Should(Succeed())
})
Expand All @@ -96,7 +96,7 @@ var _ = Describe("Redis cluster test", func() {
redisClusterCRName string
)
BeforeEach(func() {
redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31())
redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31()) //nolint:gosec
redisClusterCR = factories.New(
redisClusterCRName,
factories.WithAnnotations(map[string]string{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var _ = Describe("Redis test", func() {
crName string
)
BeforeEach(func() {
crName = fmt.Sprintf("redis-%d", rand.Int31())
crName = fmt.Sprintf("redis-%d", rand.Int31()) //nolint:gosec
cr = factories.New(crName)
Expect(k8sClient.Create(context.TODO(), cr)).Should(Succeed())
})
Expand Down Expand Up @@ -73,7 +73,7 @@ var _ = Describe("Redis test", func() {
crName string
)
BeforeEach(func() {
crName = fmt.Sprintf("redis-%d", rand.Int31())
crName = fmt.Sprintf("redis-%d", rand.Int31()) //nolint:gosec
cr = factories.New(
crName,
factories.WithAnnotations(map[string]string{
Expand Down

0 comments on commit ebcb72b

Please sign in to comment.