Skip to content

Commit a6a4e2c

Browse files
committed
fix unit test
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
1 parent 0a9f710 commit a6a4e2c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

k8sutils/redis-replication_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ func Test_generateRedisReplicationContainerParams(t *testing.T) {
9494
path := filepath.Join("..", "tests", "testdata", "redis-replication.yaml")
9595
expected := containerParameters{
9696
Image: "quay.io/opstree/redis:v7.0.12",
97+
Port: pointer.Int(6379),
9798
ImagePullPolicy: corev1.PullPolicy("IfNotPresent"),
9899
Resources: &corev1.ResourceRequirements{
99100
Requests: corev1.ResourceList{

k8sutils/redis-standalone_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func Test_generateRedisStandaloneContainerParams(t *testing.T) {
102102
path := filepath.Join("..", "tests", "testdata", "redis-standalone.yaml")
103103
expected := containerParameters{
104104
Image: "quay.io/opstree/redis:v7.0.12",
105+
Port: pointer.Int(6379),
105106
ImagePullPolicy: corev1.PullPolicy("IfNotPresent"),
106107
Resources: &corev1.ResourceRequirements{
107108
Requests: corev1.ResourceList{

0 commit comments

Comments
 (0)