Merge pull request #18277 from siyuanfoundation/rbst

robustness: remove head rev match in validateGotAtLeastOneProgressNotify
This commit is contained in:
Marek Siarkowicz 2024-07-04 16:00:03 +02:00 committed by GitHub
commit c9fdc609bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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