mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: fix TestNodeStepUnblock
The test cases have side-effect. We need to stop testing if one of the test fails. Also timeout should be much longer to avoid false-positive.
This commit is contained in:
parent
b3fee0abff
commit
500296d0fb
@ -99,8 +99,8 @@ func TestNodeStepUnblock(t *testing.T) {
|
||||
n.done = make(chan struct{})
|
||||
default:
|
||||
}
|
||||
case <-time.After(time.Millisecond * 100):
|
||||
t.Errorf("#%d: failed to unblock step", i)
|
||||
case <-time.After(1 * time.Second):
|
||||
t.Fatalf("#%d: failed to unblock step", i)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user