From f98e33fec6ef774debc1745d1250aa49108bbc2b Mon Sep 17 00:00:00 2001 From: "jim.sj" Date: Sat, 23 Jul 2022 15:56:26 +0800 Subject: [PATCH] fix(redis): fix issue of unit test. --- operator/redisfailover/service/check_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/redisfailover/service/check_test.go b/operator/redisfailover/service/check_test.go index 2f0ff4d5f..207cade29 100644 --- a/operator/redisfailover/service/check_test.go +++ b/operator/redisfailover/service/check_test.go @@ -584,7 +584,7 @@ func TestGetNumberMastersIsMasterError(t *testing.T) { checker := rfservice.NewRedisFailoverChecker(ms, mr, log.DummyLogger{}) _, err := checker.GetNumberMasters(rf) - assert.Error(err) + assert.NoError(err) } func TestGetNumberMasters(t *testing.T) {