mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #18277 from siyuanfoundation/rbst
robustness: remove head rev match in validateGotAtLeastOneProgressNotify
This commit is contained in:
commit
c9fdc609bb
@ -129,13 +129,11 @@ func validateGotAtLeastOneProgressNotify(t *testing.T, reports []report.ClientRe
|
||||
external:
|
||||
for _, r := range reports {
|
||||
for _, op := range r.Watch {
|
||||
var lastHeadRevision int64 = 1
|
||||
for _, resp := range op.Responses {
|
||||
if resp.IsProgressNotify && resp.Revision == lastHeadRevision {
|
||||
if resp.IsProgressNotify {
|
||||
gotProgressNotify = true
|
||||
break external
|
||||
}
|
||||
lastHeadRevision = resp.Revision
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user