From b591e4583c0b2ce090f1b93a44ab2054fbafa402 Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Wed, 11 Dec 2024 15:18:24 +0800 Subject: [PATCH] fix Signed-off-by: Ryan Leung --- tests/server/cluster/cluster_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/server/cluster/cluster_test.go b/tests/server/cluster/cluster_test.go index 3b70e837ac5..8a71b30e8ea 100644 --- a/tests/server/cluster/cluster_test.go +++ b/tests/server/cluster/cluster_test.go @@ -1416,7 +1416,7 @@ func TestTransferLeaderForScheduler(t *testing.T) { }) // Check scheduler updated. schedulersController := rc.GetCoordinator().GetSchedulersController() - re.Len(schedulersController.GetSchedulerNames(), 6) + re.Len(schedulersController.GetSchedulerNames(), 5) checkEvictLeaderSchedulerExist(re, schedulersController, true) checkEvictLeaderStoreIDs(re, schedulersController, []uint64{1, 2}) @@ -1436,7 +1436,7 @@ func TestTransferLeaderForScheduler(t *testing.T) { re.True(leaderServer.GetRaftCluster().IsPrepared()) // Check scheduler updated. schedulersController = rc1.GetCoordinator().GetSchedulersController() - re.Len(schedulersController.GetSchedulerNames(), 6) + re.Len(schedulersController.GetSchedulerNames(), 5) checkEvictLeaderSchedulerExist(re, schedulersController, true) checkEvictLeaderStoreIDs(re, schedulersController, []uint64{1, 2}) @@ -1455,7 +1455,7 @@ func TestTransferLeaderForScheduler(t *testing.T) { re.True(leaderServer.GetRaftCluster().IsPrepared()) // Check scheduler updated schedulersController = rc.GetCoordinator().GetSchedulersController() - re.Len(schedulersController.GetSchedulerNames(), 6) + re.Len(schedulersController.GetSchedulerNames(), 5) checkEvictLeaderSchedulerExist(re, schedulersController, true) checkEvictLeaderStoreIDs(re, schedulersController, []uint64{1, 2})