-
Notifications
You must be signed in to change notification settings - Fork 934
Firestore: withRetry test helper added #7411
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
…a query should use bloom filter to avoid full requery'
|
…ectionReference and Firestore
Size Report 1Affected ProductsNo changes between base commit (d41ee2f) and merge commit (a7d13b8).Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (d41ee2f) and merge commit (a7d13b8).Test Logs |
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.
Looks good. I like how the 'retry'
,'passed'
string values are removed.
Add a
withRetry()
helper function to the Firestore integration testing utility library. This function takes an async function as an argument, calls it, and awaits the Promise that it returns. If the Promise is rejected withRetryError
then the async function is simply called again. If the Promise resolves successfully or is rejected with any other exception then the Promise returned fromwithRetry()
is resolved/rejected in the same manner.The test
'resuming a query should use bloom filter to avoid full requery'
inquery.test.ts
is modified to use this new helper function. An upcoming change, #7412, will also use this newwithRetry()
helper function.