Skip to content

Commit

Permalink
test-1
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Jan 14, 2025
1 parent 063332c commit 976c5f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/server/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,9 @@ func TestRemovingProgress(t *testing.T) {
log.Info("store 2 progress", zap.Any("progress", p))
}
}()
if leader.GetRaftCluster() == nil {
return false
}
// wait for cluster prepare
if !leader.GetRaftCluster().IsPrepared() {
leader.GetRaftCluster().SetPrepared()
Expand Down

0 comments on commit 976c5f9

Please sign in to comment.