Skip to content

Commit

Permalink
Fix very trivial things in TestKeyspaceGroupTestSuite/TestAllocNodesU…
Browse files Browse the repository at this point in the history
…pdate

Signed-off-by: Bin Shi <binshi.bing@gmail.com>
  • Loading branch information
binshi-bing committed Apr 26, 2023
1 parent f60fbe7 commit be1ca8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integrations/mcs/keyspace/tso_keyspace_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (suite *keyspaceGroupTestSuite) TearDownTest() {
func (suite *keyspaceGroupTestSuite) TestAllocNodesUpdate() {
// add three nodes.
nodes := make(map[string]bs.Server)
for i := 0; i < utils.KeyspaceGroupDefaultReplicaCount+2; i++ {
for i := 0; i < utils.KeyspaceGroupDefaultReplicaCount+1; i++ {
s, cleanup := mcs.StartSingleTSOTestServer(suite.ctx, suite.Require(), suite.backendEndpoints, tempurl.Alloc())
defer cleanup()
nodes[s.GetAddr()] = s
Expand Down Expand Up @@ -113,7 +113,7 @@ func (suite *keyspaceGroupTestSuite) TestAllocNodesUpdate() {
oldMembers[member.Address] = struct{}{}
}

// alloc node update to 2.
// alloc node update to 3.
params.Replica = utils.KeyspaceGroupDefaultReplicaCount + 1
got, code = suite.tryAllocNodesForKeyspaceGroup(id, params)
suite.Equal(http.StatusOK, code)
Expand Down

0 comments on commit be1ca8d

Please sign in to comment.