Skip to content

test: Add a test that confirms errors are properly passed through for getInstance calls#1606

Merged
gcf-merge-on-green[bot] merged 7 commits intomainfrom
388499540-get-instances
Aug 14, 2025
Merged

test: Add a test that confirms errors are properly passed through for getInstance calls#1606
gcf-merge-on-green[bot] merged 7 commits intomainfrom
388499540-get-instances

Conversation

@danieljbruce
Copy link
Contributor

Description

This test confirms that errors will bubble up to the user for getInstances calls which allows us to close b/388499540 as not reproducible.

Impact

Just adding a test to confirm correct client library behaviour

Additional Information

Two files were edited:

  • One is the test file where we added the new test
  • The other is the file that defines mock services where we needed to add a mock service for the admin client

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigtable Issues related to the googleapis/nodejs-bigtable API. labels May 21, 2025
@danieljbruce danieljbruce marked this pull request as ready for review May 21, 2025 17:55
@danieljbruce danieljbruce requested a review from a team May 21, 2025 17:55
@danieljbruce danieljbruce requested a review from a team as a code owner May 21, 2025 17:55
feywind
feywind previously approved these changes May 21, 2025
test/errors.ts Outdated
describe('with getInstances', () => {
const emitGetInstancesError = (stream: any) => {
const metadata = new grpc.Metadata();
metadata.set(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might add a comment here about what the magic buffer numbers mean.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was in the code snippet I copied because it is realistic to have metadata, but I just removed it because it isn't actually necessary.

@danieljbruce danieljbruce added the automerge Merge the pull request once unit tests and other checks pass. label May 21, 2025
@gcf-merge-on-green
Copy link
Contributor

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.

@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label May 22, 2025
@danieljbruce danieljbruce added the automerge Merge the pull request once unit tests and other checks pass. label Aug 14, 2025
@gcf-merge-on-green gcf-merge-on-green bot merged commit cd45aa0 into main Aug 14, 2025
20 of 23 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Aug 14, 2025
@gcf-merge-on-green gcf-merge-on-green bot deleted the 388499540-get-instances branch August 14, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/nodejs-bigtable API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants