@@ -997,7 +997,7 @@ describeSpec('Limbo Documents:', [], () => {
997
997
spec ( )
998
998
. withGCEnabled ( false )
999
999
1000
- // Start a limbo resolution listen for a document.
1000
+ // Start a limbo resolution listen for a document (doc1) .
1001
1001
. userListens ( query1 )
1002
1002
. watchAcksFull ( query1 , 1000 , doc1 )
1003
1003
. expectEvents ( query1 , { added : [ doc1 ] } )
@@ -1008,7 +1008,8 @@ describeSpec('Limbo Documents:', [], () => {
1008
1008
. expectLimboDocs ( doc1 . key )
1009
1009
. expectEnqueuedLimboDocs ( )
1010
1010
1011
- // Put the same document into limbo in a different query.
1011
+ // Put doc1 into limbo in a different query; verify that another limbo
1012
+ // resolution is neither started nor enqueued.
1012
1013
. userListens ( filteredQuery2 )
1013
1014
. expectEvents ( filteredQuery2 , { added : [ doc1 ] , fromCache : true } )
1014
1015
. watchAcksFull ( filteredQuery2 , 1002 )
@@ -1045,7 +1046,7 @@ describeSpec('Limbo Documents:', [], () => {
1045
1046
. watchAcksFull ( filteredQuery1 , 1001 )
1046
1047
. expectLimboDocs ( doc1 . key )
1047
1048
1048
- // Start a limbo resolution listen for a different document.
1049
+ // Start a limbo resolution listen for a different document (doc2) .
1049
1050
. userListens ( query2 )
1050
1051
. watchAcksFull ( query2 , 1002 , doc2 )
1051
1052
. expectEvents ( query2 , { added : [ doc2 ] } )
@@ -1056,9 +1057,8 @@ describeSpec('Limbo Documents:', [], () => {
1056
1057
. expectLimboDocs ( doc1 . key )
1057
1058
. expectEnqueuedLimboDocs ( doc2 . key )
1058
1059
1059
- // Put the the "different" document into limbo in a different query
1060
- // and verify that it's not added to the limbo resolution queue a
1061
- // second time.
1060
+ // Put doc2 into limbo in a different query and verify that it's not
1061
+ // added to the limbo resolution queue again.
1062
1062
. userListens ( filteredQuery3 )
1063
1063
. expectEvents ( filteredQuery3 , { added : [ doc2 ] , fromCache : true } )
1064
1064
. watchAcksFull ( filteredQuery3 , 1004 )
0 commit comments