From 61d2ee383d4b4c3e5589e5df41c8544b473d16ea Mon Sep 17 00:00:00 2001 From: M Samuel Vijaykumar Date: Tue, 3 Sep 2024 23:10:41 +0530 Subject: [PATCH] test disableMyMaster true --- test/integration/redisfailover/creation_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/redisfailover/creation_test.go b/test/integration/redisfailover/creation_test.go index 8d637fe4a..cc15333af 100644 --- a/test/integration/redisfailover/creation_test.go +++ b/test/integration/redisfailover/creation_test.go @@ -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{}) @@ -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") @@ -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) }) }