diff --git a/test/integration/redisfailover/creation_test.go b/test/integration/redisfailover/creation_test.go index 2cc4dbefb..4096ebd8c 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 := false // Create signal channels. stopC := make(chan struct{}) @@ -131,7 +132,9 @@ func TestRedisFailover(t *testing.T) { require.NoError(err) // Check that if we create a RedisFailover, it is certainly created and we can get it - ok := t.Run("Check Custom Resource Creation", clients.testCRCreation) + ok := t.Run("Check Custom Resource Creation", func(t *testing.T) { + clients.testCRCreation(t, disableMyMaster) + }) require.True(ok, "the custom resource has to be created to continue") // Giving time to the operator to create the resources @@ -158,7 +161,9 @@ func TestRedisFailover(t *testing.T) { // Connect to all the Sentinel pods and, asking to the Sentinel running inside them, // 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", clients.testSentinelMonitoring) + t.Run("Check Sentinels Checking the Redis Master", func(t *testing.T) { + clients.testSentinelMonitoring(t, disableMyMaster) + }) } func TestRedisFailoverWithMasterName(t *testing.T) {