Skip to content

Commit 2c5338a

Browse files
committed
Sentinel readinessprobe default test
1 parent 51d7d84 commit 2c5338a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/redisfailover/service/generator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2158,7 +2158,7 @@ func TestSentinelCustomReadinessProbe(t *testing.T) {
21582158
Command: []string{
21592159
"sh",
21602160
"-c",
2161-
"redis-cli -h $(hostname) -p 26379 ping",
2161+
"redis-cli -h $(hostname) -p 26379 sentinel get-master-addr-by-name mymaster | head -n 1 | grep -vq '127.0.0.1'",
21622162
},
21632163
},
21642164
},

0 commit comments

Comments
 (0)