File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
firebase-firestore/src/test/java/com/google/firebase/firestore/bundle Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ public class BundleReaderTest {
78
78
Collections .emptyList (),
79
79
Collections .singletonList (orderBy ("sort" )),
80
80
1 ,
81
- Query .LimitType .LIMIT_TO_LAST ,
81
+ // Note this is LIMIT_TO_FIRST because it is the expected
82
+ // limit type in bundle files.
83
+ Query .LimitType .LIMIT_TO_FIRST ,
82
84
null ,
83
85
null )
84
86
.toTarget (),
Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ public void testDecodesLimitQuery() throws JSONException {
571
571
@ Test
572
572
public void testDecodesLimitToLastQuery () throws JSONException {
573
573
String json = "{ from: [ { collectionId: 'coll' } ], limit: {value: 5 } }" ;
574
- Query query = TestUtil .query ("coll" ).limitToLast (5 );
574
+ Query query = TestUtil .query ("coll" ).orderBy ( orderBy ( "__name__" , "desc" )). limitToLast (5 );
575
575
assertDecodesNamedQuery (json , query );
576
576
}
577
577
You can’t perform that action at this time.
0 commit comments