-
-
Notifications
You must be signed in to change notification settings - Fork 105
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: throwFileSizeLimit value respects per-request override #454
Fix: throwFileSizeLimit value respects per-request override #454
Conversation
How should I attach test report? |
You have to add a unit test and then we run the ci pipeline. |
I will look into the failed test case over this weekend. |
7155d76
to
ddca56c
Compare
Synced the fork and rebased the branch with master. |
Regarding the failed test before (test/multipart-fileLimit.test.js) that failed only on windows, the error in the logs doesn't make much sense to me.
I don't understand why there would be a SIGTERM.
I also tried running them on laptops (macos and windows) and it is passing on both of them. Thus, I am failing to understand what could be wrong. @Uzlopak, Would you mind running the CI again? |
But still we need a unit test to avoid regressions |
I agree, got sidelined with a peculiar observation. Let me add the tests before we go ahead with the merge. I'll need to study the existing tests to figure out how to go about writing it. On side note, |
We had alot of issues with node 20 in fastify core. This actually indicates some deeper issues. But i guess nobody felt it that painful to investigate them further. Lets run the tests. See what we can achieve. |
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.
lgtm
From the comments in the file,
options
contains instance level configuration andopts
contains per-request overrides. Hence the above conditional statement doesn't respect per-request override.Fix:
options
should be replaced withopts
.Regression introduced in commit c47f60a.
Checklist
npm run test
andnpm run benchmark
and the Code of conduct