robustness: remove head rev match in validateGotAtLeastOneProgressNotify

Signed-off-by: Siyuan Zhang <sizhang@google.com>
This commit is contained in:
Siyuan Zhang 2024-07-03 09:03:54 -07:00
parent 04082b7672
commit cded6b0ac6

View File

@ -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
}
}
}