mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests/robustness: fix out of index panic in model replay
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
This commit is contained in:
parent
ca41186228
commit
f0f4e8a4e8
@ -73,7 +73,7 @@ func (r *EtcdReplay) next() (request EtcdRequest, revision int64, index int) {
|
||||
revision = r.eventHistory[r.eventHistoryIndex].Revision
|
||||
index = r.eventHistoryIndex
|
||||
operations := []EtcdOperation{}
|
||||
for r.eventHistory[index].Revision == revision {
|
||||
for index < len(r.eventHistory) && r.eventHistory[index].Revision == revision {
|
||||
event := r.eventHistory[index]
|
||||
switch event.Type {
|
||||
case PutOperation:
|
||||
|
Loading…
x
Reference in New Issue
Block a user