-
Notifications
You must be signed in to change notification settings - Fork 617
Firestore: QueryTest.java: improve the test that resumes a query with existence filter to actually validate the existence filter. #4813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… existence filter to actually validate the existence filter. This is a port of firebase/firebase-js-sdk#7149, and builds upon the test added in #4799.
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. Add the 'main-merge-ack' label to your PR to confirm merging into the main branch is intended. |
Coverage Report 1Affected Products
Test Logs |
Size Report 1Affected Products
Test Logs |
Startup Time Report 1Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS. Notes
Startup Times
|
...re/src/main/java/com/google/firebase/firestore/remote/WatchChangeAggregatorTestingHooks.java
Outdated
Show resolved
Hide resolved
...re/src/main/java/com/google/firebase/firestore/remote/WatchChangeAggregatorTestingHooks.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ChangeAggregatorTestingHooksAccessor -> ExistenceFilterMismatchListener
…nage the registered ExistenceFilterMismatchListener objects
This PR improves the test resumingAQueryShouldUseExistenceFilterToDetectDeletes() in QueryTest.java, which was added by the previous PR #4799, to also validate that the existence filter sent from Watch was correct. This was achieved by adding some test-only "hooks" into the SDK's internals that enable the test to "listen" for existence filter mismatches. This is a port of firebase/firebase-js-sdk#7149 and firebase/firebase-ios-sdk#11209.