From ebcb72bbaa388caa00011c2ca88f0122572aeee3 Mon Sep 17 00:00:00 2001 From: drivebyer Date: Sun, 15 Sep 2024 22:39:32 +0800 Subject: [PATCH] update Signed-off-by: drivebyer --- .../rediscluster/rediscluster_controller_test.go | 6 +++--- .../redisreplication/redisreplication_controller_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/controllers/rediscluster/rediscluster_controller_test.go b/pkg/controllers/rediscluster/rediscluster_controller_test.go index 253ef696e..07f175c9c 100644 --- a/pkg/controllers/rediscluster/rediscluster_controller_test.go +++ b/pkg/controllers/rediscluster/rediscluster_controller_test.go @@ -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()) }) @@ -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()) }) @@ -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{ diff --git a/pkg/controllers/redisreplication/redisreplication_controller_test.go b/pkg/controllers/redisreplication/redisreplication_controller_test.go index 88b9a2c95..91595fad9 100644 --- a/pkg/controllers/redisreplication/redisreplication_controller_test.go +++ b/pkg/controllers/redisreplication/redisreplication_controller_test.go @@ -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()) }) @@ -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{