File tree 1 file changed +1
-14
lines changed
1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ func TestDemoteDownedManager(t *testing.T) {
374
374
}
375
375
376
376
func TestRestartLeader (t * testing.T ) {
377
- numWorker , numManager := 10 , 5
377
+ numWorker , numManager := 5 , 3
378
378
cl := newCluster (t , numWorker , numManager )
379
379
defer func () {
380
380
require .NoError (t , cl .Stop ())
@@ -386,19 +386,6 @@ func TestRestartLeader(t *testing.T) {
386
386
387
387
require .NoError (t , leader .Pause ())
388
388
389
- require .NoError (t , raftutils .PollFuncWithTimeout (nil , func () error {
390
- resp , err := cl .api .GetNode (context .Background (), & api.GetNodeRequest {
391
- NodeID : origLeaderID ,
392
- })
393
- if err != nil {
394
- return err
395
- }
396
- if resp .Node .Status .State != api .NodeStatus_DOWN {
397
- return errors .Errorf ("node %s is still not down" , origLeaderID )
398
- }
399
- return nil
400
- }, opsTimeout ))
401
-
402
389
require .NoError (t , raftutils .PollFuncWithTimeout (nil , func () error {
403
390
resp , err := cl .api .ListNodes (context .Background (), & api.ListNodesRequest {})
404
391
if err != nil {
You can’t perform that action at this time.
0 commit comments