Skip to content

Commit f33712d

Browse files
Tests break with new assert
1 parent 3b36974 commit f33712d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/firestore/src/local/indexeddb_remote_document_cache.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ class IndexedDbRemoteDocumentChangeBuffer extends RemoteDocumentChangeBuffer {
499499
} else {
500500
sizeDelta -= previousSize!;
501501
if (this.trackRemovals) {
502+
debugAssert(!documentChange.readTime.isEqual(SnapshotVersion.min()), "All read times must be set for trackRemovals");
502503
// In order to track removals, we store a "sentinel delete" in the
503504
// RemoteDocumentCache. This entry is represented by a NoDocument
504505
// with a version of 0 and ignored by `maybeDecodeDocument()` but

0 commit comments

Comments
 (0)