Skip to content

Commit efa84a5

Browse files
committed
More fix
1 parent ea59b3d commit efa84a5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

firebase-firestore/src/test/java/com/google/firebase/firestore/bundle/BundleReaderTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ public class BundleReaderTest {
7878
Collections.emptyList(),
7979
Collections.singletonList(orderBy("sort")),
8080
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,
8284
null,
8385
null)
8486
.toTarget(),

firebase-firestore/src/test/java/com/google/firebase/firestore/bundle/BundleSerializerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ public void testDecodesLimitQuery() throws JSONException {
571571
@Test
572572
public void testDecodesLimitToLastQuery() throws JSONException {
573573
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);
575575
assertDecodesNamedQuery(json, query);
576576
}
577577

0 commit comments

Comments
 (0)