Skip to content

Commit

Permalink
test disableMyMaster true
Browse files Browse the repository at this point in the history
  • Loading branch information
samof76 committed Sep 3, 2024
1 parent 77bd5e6 commit 61d2ee3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/redisfailover/creation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (c *clients) cleanup(stopC chan struct{}) {

func TestRedisFailover(t *testing.T) {
require := require.New(t)
disableMyMaster := true

// Create signal channels.
stopC := make(chan struct{})
Expand Down Expand Up @@ -132,7 +133,7 @@ func TestRedisFailover(t *testing.T) {

// Check that if we create a RedisFailover, it is certainly created and we can get it
ok := t.Run("Check Custom Resource Creation", func(t *testing.T) {
clients.testCRCreation(t)
clients.testCRCreation(t, disableMyMaster)
})
require.True(ok, "the custom resource has to be created to continue")

Expand Down Expand Up @@ -161,7 +162,7 @@ func TestRedisFailover(t *testing.T) {
// check that all of them are connected to the same Redis node, and also that that node
// is the master.
t.Run("Check Sentinels Checking the Redis Master", func(t *testing.T) {
clients.testSentinelMonitoring(t)
clients.testSentinelMonitoring(t, disableMyMaster)
})
}

Expand Down

0 comments on commit 61d2ee3

Please sign in to comment.