-
Notifications
You must be signed in to change notification settings - Fork 195
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
@tus/s3-store: fix uncaught exception when cancelling an upload #412
Conversation
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.
Thanks for the PR! Do you think we can test this easily in https://github.com/tus/tus-node-server/blob/main/packages/s3-store/test.ts? Would be nice a great case for a test.
I can't think of an easy way to test this. |
Perhaps we can do something similar to this: tus-node-server/test/stores.test.ts Lines 145 to 161 in ffb9f0c
Instead of |
I'm not sure if it is testable at all because of a possible race between reject and resolve:
|
Thank you! |
* main: Bump typescript from 4.9.3 to 5.0.4 (tus#425) Bump sinon from 15.0.0 to 15.0.4 (tus#426) @tus/gcs-store: allow user to pass bucket instance to GCSStore (tus#388) Fix e2e test typecheking (tus#429) Update incorrect comment (tus#430) @tus/s3-store: add missing error code in termination extension (tus#413) @tus/s3-store@1.0.0-beta.5 @tus/s3-store: fix uncaught exception when cancelling an upload (tus#412) @tus/s3-store@1.0.0-beta.4 @tus/s3-store: fix uncaught exception when removing files (tus#410) @tus/s3-store: add termination extension (tus#401) @tus/server@1.0.0-beta.5 Bump @google-cloud/storage from 6.8.0 to 6.9.3 (tus#404) Bump http-cache-semantics from 4.1.0 to 4.1.1 (tus#393) Bump eslint-config-prettier from 8.5.0 to 8.6.0 (tus#392) Bump cookiejar from 2.1.3 to 2.1.4 (tus#383) Bump aws-sdk from 2.1269.0 to 2.1325.0 (tus#403) @tus/server: refactor and improve request validator (tus#402) Fix demo (tus#386)
Fixes #411