Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Disable some spec tests on mobile
  • Loading branch information
Greg Soltis committed Aug 17, 2018
commit bdf4cef638bd70389cb457b31173fd92fe3e1fdd
12 changes: 6 additions & 6 deletions packages/firestore/test/unit/specs/offline_spec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { spec } from './spec_builder';
import { TimerId } from '../../../src/util/async_queue';

describeSpec('Offline:', [], () => {
specTest('Empty queries are resolved if client goes offline', [], () => {
specTest('Empty queries are resolved if client goes offline', ['no-android', 'no-ios'], () => {
const query = Query.atPath(path('collection'));
return (
spec()
Expand All @@ -39,7 +39,7 @@ describeSpec('Offline:', [], () => {
);
});

specTest('A successful message delays offline status', [], () => {
specTest('A successful message delays offline status', ['no-android', 'no-ios'], () => {
const query = Query.atPath(path('collection'));
return (
spec()
Expand All @@ -61,7 +61,7 @@ describeSpec('Offline:', [], () => {

specTest(
'Removing all listeners delays "Offline" status on next listen',
['eager-gc'],
['eager-gc', 'no-android', 'no-ios'],
'Marked as no-lru because when a listen is re-added, it gets a new target id rather than reusing one',
() => {
const query = Query.atPath(path('collection'));
Expand Down Expand Up @@ -91,7 +91,7 @@ describeSpec('Offline:', [], () => {
}
);

specTest('Queries revert to fromCache=true when offline.', [], () => {
specTest('Queries revert to fromCache=true when offline.', ['no-android', 'no-ios'], () => {
const query = Query.atPath(path('collection'));
const docA = doc('collection/a', 1000, { key: 'a' });
return (
Expand All @@ -111,7 +111,7 @@ describeSpec('Offline:', [], () => {
);
});

specTest('Queries with limbo documents handle going offline.', [], () => {
specTest('Queries with limbo documents handle going offline.', ['no-android', 'no-ios'], () => {
const query = Query.atPath(path('collection'));
const docA = doc('collection/a', 1000, { key: 'a' });
const limboQuery = Query.atPath(docA.key.path);
Expand Down Expand Up @@ -177,7 +177,7 @@ describeSpec('Offline:', [], () => {
specTest(
'New queries return immediately with fromCache=true when offline due to ' +
'stream failures.',
[],
['no-android', 'no-ios'],
() => {
const query1 = Query.atPath(path('collection'));
const query2 = Query.atPath(path('collection2'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describeSpec('Remote store:', [], () => {
.expectEvents(query, { added: [doc4] }); // This should work now.
});

specTest('Cleans up watch state correctly', [], () => {
specTest('Cleans up watch state correctly', ['no-android', 'no-ios'], () => {
const query = Query.atPath(path('collection'));
const doc1 = doc('collection/a', 1000, { key: 'a' });
return (
Expand Down