Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <yuping@pingcap.com>
  • Loading branch information
pingyu committed Jan 24, 2025
1 parent 73a2719 commit abd4dcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,10 @@ func (s *TestServer) waitPreAllocKeyspaces() error {
manager := s.GetKeyspaceManager()
idx := 0
Outer:
for i := 0; i < WaitPreAllocKeyspacesRetryTimes; i++ {
for range WaitPreAllocKeyspacesRetryTimes {
for idx < len(keyspaces) {
_, err := manager.LoadKeyspace(keyspaces[idx])
if errors.ErrorEqual(err, keyspace.ErrKeyspaceNotFound) {
if errors.ErrorEqual(err, errs.ErrKeyspaceNotFound) {
time.Sleep(WaitPreAllocKeyspacesInterval)
continue Outer
}
Expand Down

0 comments on commit abd4dcc

Please sign in to comment.