Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Nov 9, 2024
1 parent 6e1a46a commit 0efd293
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions coordinator/impl/coordinator_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,28 +816,6 @@ func TestCoordinator_RefreshServerInfo(t *testing.T) {
clusterConfig.Servers = clusterServer
configChangesCh <- nil

removeNodeHappened := false
timeout, cancelFunc := context.WithTimeout(context.Background(), 5*time.Second)
outer:
for {
select {
case <-timeout.Done():
break outer
default:
time.Sleep(100 * time.Millisecond)
for _, ns := range c.ClusterStatus().Namespaces {
for _, shard := range ns.Shards {
if shard.RemovedNodes == nil || len(shard.RemovedNodes) == 0 {
continue
}
removeNodeHappened = true
}
}
}
}
cancelFunc()
assert.False(t, removeNodeHappened)

assert.Eventually(t, func() bool {
for _, ns := range c.ClusterStatus().Namespaces {
for _, shard := range ns.Shards {
Expand Down

0 comments on commit 0efd293

Please sign in to comment.