Skip to content

Commit

Permalink
test(*): flaky TestCoordinator_RebalanceCluster (#400)
Browse files Browse the repository at this point in the history
Use Steady status cause flaky test

Signed-off-by: Soren Yang <[email protected]>
  • Loading branch information
lsytj0413 authored Dec 6, 2023
1 parent 6017d01 commit 86f3768
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coordinator/impl/coordinator_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,9 @@ func TestCoordinator_RebalanceCluster(t *testing.T) {
assert.Eventually(t, func() bool {
for _, ns := range coordinator.ClusterStatus().Namespaces {
for _, shard := range ns.Shards {
if shard.Status != model.ShardStatusSteadyState {
// Use Term to detect for EnsembleChange have done, we cann't use status
// because it always be Steady when EnsembleChange.
if shard.Term != 1 {
return false
}
}
Expand Down

0 comments on commit 86f3768

Please sign in to comment.