Skip to content

Commit 5c11b8a

Browse files
authored
Use query API for getCanonicalId test rather than Target API. (#4705)
1 parent bb62df1 commit 5c11b8a

File tree

1 file changed

+3
-3
lines changed
  • firebase-firestore/src/test/java/com/google/firebase/firestore/core

1 file changed

+3
-3
lines changed

firebase-firestore/src/test/java/com/google/firebase/firestore/core/FilterTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public void testCompositeFilterNestedChecks() {
8989

9090
@Test
9191
public void testCanonicalIdOfFlatConjunctions() {
92-
Target target1 = query("col").filter(A).filter(B).filter(C).toTarget();
93-
Target target2 = query("col").filter(andFilters(A, B, C)).toTarget();
94-
assertEquals(target1.getCanonicalId(), target2.getCanonicalId());
92+
Query q1 = query("col").filter(A).filter(B).filter(C);
93+
Query q2 = query("col").filter(andFilters(A, B, C));
94+
assertEquals(q1.getCanonicalId(), q2.getCanonicalId());
9595
}
9696
}

0 commit comments

Comments
 (0)