Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

tests: scenario 5#1684

Merged
ddelgrosso1 merged 8 commits into
mainfrom
shaffeeullah/handleStreamErrors
Oct 27, 2021
Merged

tests: scenario 5#1684
ddelgrosso1 merged 8 commits into
mainfrom
shaffeeullah/handleStreamErrors

Conversation

@shaffeeullah

Copy link
Copy Markdown
Contributor

No description provided.

@shaffeeullah shaffeeullah requested review from a team October 26, 2021 22:23
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/nodejs-storage API. label Oct 26, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 26, 2021
@shaffeeullah shaffeeullah changed the title Shaffeeullah/handle stream errors tests: scenario 5 Oct 26, 2021
Comment thread conformance-test/libraryMethods.ts Outdated
.on('end', () => resolve(undefined));
.on('end', () => resolve(undefined))
.on('error', err => reject(err));
}).catch(() => {

@ddelgrosso1 ddelgrosso1 Oct 27, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can this be handled up a layer? If I understand this correctly if an error occurs the .on('error') handler will reject which is caught by this block which in turn throws an error. Can't the rejection be caught by the wrapping function?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@ddelgrosso1

Copy link
Copy Markdown
Contributor

Just a general comment, do we want to go into main with these or work in another staging branch for the time being?

@shaffeeullah

Copy link
Copy Markdown
Contributor Author

Just a general comment, do we want to go into main with these or work in another staging branch for the time being?

I think we should have staging branches for each scenario and merge to main a scenario at a time. In this case, we don't need a staging branch because all of scenario 5 is passing.

@ddelgrosso1 ddelgrosso1 merged commit e7d79d7 into main Oct 27, 2021
@ddelgrosso1 ddelgrosso1 deleted the shaffeeullah/handleStreamErrors branch October 27, 2021 15:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: storage Issues related to the googleapis/nodejs-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants