Skip to content
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

Merged
merged 1 commit into from Feb 11, 2021

Conversation

suraj-qlogic
Copy link
Contributor

Fixes #474

@suraj-qlogic suraj-qlogic requested a review from a team November 25, 2020 11:09
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/java-firestore API. label Nov 25, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 25, 2020
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Nov 25, 2020
@suraj-qlogic suraj-qlogic self-assigned this Nov 25, 2020
@codecov
Copy link

codecov bot commented Nov 25, 2020

Codecov Report

Merging #476 (33f0dbc) into master (767f995) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 767f995...33f0dbc. Read the comment docs.

@suraj-qlogic suraj-qlogic added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 28, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 28, 2020
@suraj-qlogic
Copy link
Contributor Author

@BenWhitehead ,PTAL

@@ -644,4 +644,9 @@ Query filterNotIn() {
// [END fs_filter_not_in]
return query;
}

/** Closes the gRPC channels associated with this instance and frees up their resources. */
void close() throws Exception {
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/java-firestore API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

samples build failed due to firestore instance does not shutdown/close properly
9 participants