Skip to content

Commit 9bc9ba4

Browse files
committed
Revert "Use a more realistic scenario for watch sending a version back in time"
This reverts commit 44850e5.
1 parent 44850e5 commit 9bc9ba4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/firestore/test/unit/specs/listen_spec.test.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -271,19 +271,14 @@ describeSpec('Listens:', [], () => {
271271
// (the document falls out) and send us a snapshot that's ahead of
272272
// docAv3 (which is already in our cache).
273273
.userListens(visibleQuery, 'resume-token-1000')
274-
.watchAcks(visibleQuery)
275-
.watchSends({ affects: [visibleQuery] }, docAv2)
276-
.watchSnapshots(5000)
277-
.watchSends({ affects: [visibleQuery] }, docAv3)
278-
.watchCurrents(visibleQuery, 'resume-token-5000')
279-
.watchSnapshots(6000)
274+
.watchAcksFull(visibleQuery, 5000, docAv2)
280275
.expectEvents(visibleQuery, { fromCache: false })
281276
.userUnlistens(visibleQuery)
282277
.watchRemoves(visibleQuery)
283278
// Listen to allQuery again and make sure we still get docAv3.
284279
.userListens(allQuery, 'resume-token-4000')
285280
.expectEvents(allQuery, { added: [docAv3], fromCache: true })
286-
.watchAcksFull(allQuery, 7000)
281+
.watchAcksFull(allQuery, 6000)
287282
.expectEvents(allQuery, { fromCache: false })
288283
);
289284
});

0 commit comments

Comments
 (0)