Skip to content

Commit

Permalink
Merge pull request etcd-io#18277 from siyuanfoundation/rbst
Browse files Browse the repository at this point in the history
robustness: remove head rev match in validateGotAtLeastOneProgressNotify
  • Loading branch information
serathius authored Jul 4, 2024
2 parents 1b25193 + cded6b0 commit c9fdc60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/robustness/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit c9fdc60

Please sign in to comment.