Skip to content

Commit 70326ee

Browse files
committed
Update MockDatastore.java
1 parent 9f66dea commit 70326ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

firebase-firestore/src/test/java/com/google/firebase/firestore/remote/MockDatastore.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ public void watchQuery(TargetData targetData) {
9494
// Snapshot version is ignored on the wire
9595
TargetData sentTargetData =
9696
targetData.withResumeToken(targetData.getResumeToken(), SnapshotVersion.NONE);
97+
98+
if (targetData.getExpectedCount() != null) {
99+
sentTargetData = sentTargetData.withExpectedCount(targetData.getExpectedCount());
100+
}
101+
97102
watchStreamRequestCount += 1;
98103
this.activeTargets.put(targetData.getTargetId(), sentTargetData);
99104
}

0 commit comments

Comments
 (0)