Skip to content

Commit 9c6df05

Browse files
committed
fix: avoid redis create test panic
1 parent de3b5ff commit 9c6df05

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎pkg/cmd/cluster/create_subcmds_test.go‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ import (
4646

4747
var _ = Describe("create cluster by cluster type", func() {
4848
const (
49-
clusterType = "apecloud-mysql"
50-
redisCluster = "redis"
51-
redisComponent = "redis-cluster"
49+
clusterType = "apecloud-mysql"
50+
redisCluster = "redis"
5251
)
5352

5453
var (
@@ -164,7 +163,7 @@ var _ = Describe("create cluster by cluster type", func() {
164163
Expect(o.Complete(shardCmd)).Should(Succeed())
165164
Expect(o.Name).ShouldNot(BeEmpty())
166165
Expect(o.Values).ShouldNot(BeNil())
167-
Expect(o.ChartInfo.ComponentDef[0]).Should(Equal(redisComponent))
166+
Expect(o.ChartInfo.ClusterDef).Should(Equal(redisCluster))
168167

169168
By("validate")
170169
o.Dynamic = testing.FakeDynamicClient()

0 commit comments

Comments
 (0)