More tests

This commit is contained in:
Kegan Dougal 2023-01-20 12:38:58 +00:00
parent 8e774e1924
commit 6a75054e1a
2 changed files with 40 additions and 5 deletions

View file

@ -322,11 +322,7 @@ export class SlidingSyncManager {
// gradually request more over time, even on errors.
await sleep(gapBetweenRequestsMs);
}
const listData = this.slidingSync.getListData(SlidingSyncManager.ListSearch);
if (!listData) {
// we failed to do the first request, keep trying
continue;
}
const listData = this.slidingSync.getListData(SlidingSyncManager.ListSearch)!;
hasMore = endIndex + 1 < listData.joinedCount;
startIndex += batchSize;
firstTime = false;