Skip to content

Commit e880dd7

Browse files
committed
Disable tests that have multiple ins or array-contains-any per query.
1 parent 097ccc7 commit e880dd7

File tree

1 file changed

+6
-25
lines changed

1 file changed

+6
-25
lines changed

packages/firestore/test/integration/api/query.test.ts

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,8 +1511,10 @@ apiDescribe('Queries', (persistence: boolean) => {
15111511
});
15121512
});
15131513

1514+
// TODO(orquery) enable this test when the backend supports
1515+
// one in per disjunction
15141516
// eslint-disable-next-line no-restricted-properties
1515-
it('supports multiple in ops', () => {
1517+
it.skip('supports multiple in ops', () => {
15161518
const testDocs = {
15171519
doc1: { a: 1, b: 0 },
15181520
doc2: { b: 1 },
@@ -1540,8 +1542,10 @@ apiDescribe('Queries', (persistence: boolean) => {
15401542
});
15411543
});
15421544

1545+
// TODO(orquery) enable this test when the backend supports
1546+
// one in or array-contains-any per disjunction
15431547
// eslint-disable-next-line no-restricted-properties
1544-
it('supports using in with array contains any', () => {
1548+
it.skip('supports using in with array contains any', () => {
15451549
const testDocs = {
15461550
doc1: { a: 1, b: [0] },
15471551
doc2: { b: [1] },
@@ -1566,17 +1570,6 @@ apiDescribe('Queries', (persistence: boolean) => {
15661570
'doc6'
15671571
);
15681572

1569-
await checkOnlineAndOfflineResultsMatch(
1570-
query(
1571-
coll,
1572-
and(
1573-
where('a', 'in', [2, 3]),
1574-
where('b', 'array-contains-any', [0, 7])
1575-
)
1576-
),
1577-
'doc3'
1578-
);
1579-
15801573
await checkOnlineAndOfflineResultsMatch(
15811574
query(
15821575
coll,
@@ -1589,18 +1582,6 @@ apiDescribe('Queries', (persistence: boolean) => {
15891582
'doc3',
15901583
'doc4'
15911584
);
1592-
1593-
await checkOnlineAndOfflineResultsMatch(
1594-
query(
1595-
coll,
1596-
and(
1597-
where('a', 'in', [2, 3]),
1598-
or(where('b', 'array-contains-any', [0, 7]), where('c', '==', 20))
1599-
)
1600-
),
1601-
'doc3',
1602-
'doc6'
1603-
);
16041585
});
16051586
});
16061587

0 commit comments

Comments
 (0)