-
Notifications
You must be signed in to change notification settings - Fork 578
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(lib-storage): chunk from readable only when defined #1886
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1886 +/- ##
=======================================
Coverage 79.30% 79.31%
=======================================
Files 368 368
Lines 15132 15157 +25
Branches 3222 3236 +14
=======================================
+ Hits 12001 12022 +21
- Misses 3131 3135 +4
Continue to review full report at Codecov.
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Issue #, if available:
Unit tests for
lib/storage
are broken on node 12+, they work in node 10. The root cause is a minor difference in how readable works in node 12+.Description of changes:
The functionality of readable differs slightly between node 10 and node 12+. This results in
stream.on("end", () => {
listener never being called in node 12+ but always being called in node 10. Due to this, chunking never actually ends in node 12+. The unit tests catch this and complain when being run in node 12+.I've fixed the code to rely on
streamreader.readable
for end-state. This should work in both node 10 and node 12+ now.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.