File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -256,9 +256,10 @@ func (suite *keyspaceGroupTestSuite) TestKeyspaceGroupSplit() {
256256 }
257257 err := suite .kgm .CreateKeyspaceGroups (keyspaceGroups )
258258 re .NoError (err )
259- // split the default keyspace
260- err = suite .kgm .SplitKeyspaceGroupByID (0 , 4 , []uint32 {constant .DefaultKeyspaceID })
261- re .ErrorIs (err , errs .ErrModifyDefaultKeyspace )
259+ // split the bootstrap keyspace
260+ bootstrapKeyspaceID := GetBootstrapKeyspaceID ()
261+ err = suite .kgm .SplitKeyspaceGroupByID (0 , 4 , []uint32 {bootstrapKeyspaceID })
262+ re .ErrorIs (err , newModifyProtectedKeyspaceError ())
262263 // split the keyspace group 1 to 4
263264 err = suite .kgm .SplitKeyspaceGroupByID (1 , 4 , []uint32 {444 })
264265 re .ErrorIs (err , errs .ErrKeyspaceGroupNotEnoughReplicas )
You can’t perform that action at this time.
0 commit comments