-
Notifications
You must be signed in to change notification settings - Fork 75
fix(samples): close firestore instance in test #476
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
fix(samples): close firestore instance in test #476
Conversation
Codecov Report
@@ Coverage Diff @@
## master #476 +/- ##
=========================================
Coverage 73.40% 73.40%
Complexity 1086 1086
=========================================
Files 65 65
Lines 5786 5786
Branches 723 723
=========================================
Hits 4247 4247
Misses 1313 1313
Partials 226 226 Continue to review full report at Codecov.
|
|
@BenWhitehead ,PTAL |
| } | ||
|
|
||
| /** Closes the gRPC channels associated with this instance and frees up their resources. */ | ||
| void close() throws Exception { |
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.
Does this need to be overridden? It seems like the method in BaseIntegrationTest does the right thing already.
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.
Yes,because QueryDataSnippets class also have instance variable with name db of type Firestore means BaseIntegrationTest have different instance while QueryDataSnippets class have a different instance of Firestore.
🤖 I have created a release \*beep\* \*boop\* --- ### [2.2.2](https://www.github.com/googleapis/java-firestore/compare/v2.2.1...v2.2.2) (2021-02-19) ### Bug Fixes * block close() on the termination of all RPC channels ([#512](https://www.github.com/googleapis/java-firestore/issues/512)) ([67bd06a](https://www.github.com/googleapis/java-firestore/commit/67bd06aac7a53a210e1a5c081929104c43a5d48a)) * **samples:** close firestore instance in test ([#476](https://www.github.com/googleapis/java-firestore/issues/476)) ([fb1cb17](https://www.github.com/googleapis/java-firestore/commit/fb1cb175c06e2782f7cd9cb3bbb9c751e9d33713)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Fixes #474