From e9b9ec1e8f3ae73ef67f83997a20343b5dfdad46 Mon Sep 17 00:00:00 2001 From: JmPotato Date: Wed, 26 Apr 2023 16:31:14 +0800 Subject: [PATCH] Fix the test Signed-off-by: JmPotato --- pkg/keyspace/tso_keyspace_group_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/keyspace/tso_keyspace_group_test.go b/pkg/keyspace/tso_keyspace_group_test.go index b81afb98b5b..cfe035578e2 100644 --- a/pkg/keyspace/tso_keyspace_group_test.go +++ b/pkg/keyspace/tso_keyspace_group_test.go @@ -324,11 +324,14 @@ func (suite *keyspaceGroupTestSuite) TestKeyspaceGroupSplit() { func (suite *keyspaceGroupTestSuite) TestPatrolKeyspaceAssignment() { re := suite.Require() + // Force the patrol to run once. + suite.kgm.patrolKeyspaceAssignmentOnce = false // Create a keyspace group without any keyspace. err := suite.kgm.CreateKeyspaceGroups([]*endpoint.KeyspaceGroup{ { ID: uint32(1), UserKind: endpoint.Basic.String(), + Members: make([]endpoint.KeyspaceGroupMember, 2), }, }) re.NoError(err)