-
-
Couldn't load subscription status.
- Fork 116
Fix test warnings #596
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 test warnings #596
Conversation
Changed fastify.listen() calls to avoid mixing callback and promise styles that caused FastifyWarning FSTWRN003. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Pull Request Overview
This PR fixes Fastify warning FSTWRN003 by removing the problematic mixing of async/await and callback patterns in fastify.listen() calls across test files.
Key Changes:
- Removed
asynckeyword from callback functions passed tofastify.listen()in 25 test cases - Converted one test to use proper async/await pattern without callbacks
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/multipart.test.js | Removed async keyword from 8 fastify.listen() callback functions |
| test/multipart-security.test.js | Removed async keyword from 6 fastify.listen() callback functions |
| test/multipart-json.test.js | Removed async keyword from 8 fastify.listen() callback functions |
| test/multipart-http2.test.js | Converted test to properly use async/await with fastify.listen() instead of callback pattern |
| test/multipart-concat.test.js | Removed async keyword from 2 fastify.listen() callback functions |
| test/multipart-body-schema.test.js | Removed async keyword from 2 fastify.listen() callback functions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Did this previously pollute the Testlogs with Warnings?
|
Yes |
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
Signed-off-by: Aras Abbasi <aras.abbasi@googlemail.com>
Fixes FastifyWarning FSTWRN003 by removing async/callback mixing in listen calls.
Changed 26 instances across 6 test files.