-
Notifications
You must be signed in to change notification settings - Fork 624
Firestore: TestingHooks code simplification #4975
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
📝 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. |
Coverage Report 1Affected Products
Test Logs |
Unit Test Results 160 files - 330 160 suites - 330 2m 7s ⏱️ - 14m 47s Results for commit 408c77e. ± Comparison against base commit b1f2130. ♻️ This comment has been updated with latest results. |
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
|
firebase-firestore/src/androidTest/java/com/google/firebase/firestore/QueryTest.java
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
Tidy up TestingHooks code to be simpler and more consistent with the Web and iOS SDKs.
First, make the existence filter mismatch listener callbacks synchronous (instead of asynchronous). This greatly simplifies the testing and test helper code. Seconds, replace the
ExistenceFilterMismatchListener
test helper class with a static methodcaptureExistenceFilterMismatches()
, which invokes a callback and captures existence filter mismatches during the callback.Both of these changes bring the Android SDK into parity with the web and iOS SDKs.