-
Notifications
You must be signed in to change notification settings - Fork 616
Firestore: QueryTest.java: use a different Firestore instance instead of a WriteBatch #5184
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
Firestore: QueryTest.java: use a different Firestore instance instead of a WriteBatch #5184
Conversation
… of a WriteBatch to avoid affecting the local cache. This fixes the bug introduced by #5167 where WriteBatch affects the local cache (which I didn't realize).
Release note changesNo release note changes were detected. If you made changes that should be |
Coverage Report 1Affected Products
Test Logs |
Unit Test Results 162 files - 656 162 suites - 656 2m 22s ⏱️ - 35m 50s Results for commit f2d25c0. ± Comparison against base commit 2314e82. ♻️ This comment has been updated with latest results. |
Size Report 1Affected ProductsNo changes between base commit (2314e82) and merge commit (a95c793).Test Logs |
…ceInsteadOfWriteBatch
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
Use a different Firestore instance instead of a
WriteBatch
to avoid affecting the local cache inQueryTest.java
.I had originally thought that
WriteBatch
sidestepped the local cache, just like a transaction did; however, that turned out to be incorrect and using aWriteBatch
nullified the test cases that were modified to use it. This is a follow-up to #5167.This PR was ported from firebase/firebase-js-sdk#7486.