-
Notifications
You must be signed in to change notification settings - Fork 614
Firestore: Update test bloomFilterShouldCorrectlyEncodeComplexUnicodeCharacters() in QueryTest.java #5145
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: Update test bloomFilterShouldCorrectlyEncodeComplexUnicodeCharacters() in QueryTest.java #5145
Conversation
…ing the document paths with complex Unicode characters, rather than indirectly testing it via the QuerySnapshot.
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 + 108 162 suites +108 2m 7s ⏱️ - 4m 58s Results for commit 41e84f3. ± Comparison against base commit 4d1cc39. This pull request removes 470 and adds 1164 tests. Note that renamed tests count towards both.
♻️ 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
|
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
Modify the test
bloomFilterShouldCorrectlyEncodeComplexUnicodeCharacters()
inQueryTest.java
, that was added by the recent PR #5135, to directly check the bloom filter for containing the document paths with complex Unicode characters. Previously, it was indirectly checking this via the other properties of the existence filter. As a result, the "retry" logic was removed, since it doesn't matter if there is a false positive.To add the ability to directly interrogate the bloom filter, the testing hooks needed to be augmented to expose the
BloomFilter
, projectId, and databaseId.This is a port of firebase/firebase-js-sdk#7413.
Some refactorings/cleanup from this PR were backported to the web sdk in firebase/firebase-js-sdk#7474.